Remove extra shells from the spec tests.

* tests/spec/oil.scm: Patch out all reference shells from the test
suite expect for Bash.
This commit is contained in:
Timothy Sample 2019-05-17 21:14:35 -04:00
parent c61b1d6fef
commit 7e65eae774
1 changed files with 8 additions and 3 deletions

View File

@ -50,10 +50,15 @@
(substitute* "test/common.sh"
(("/usr/bin/env time") (which "time")))
;; We do not have the BusyBox shell, but the test suite
;; will try to use it anyway. This change fixes that.
;; Disable all shells except for Bash. This is mostly for
;; reproducibility, since it is annoying when the tests
;; fail because a different set of reference shells are
;; available.
(substitute* "test/spec.sh"
(("BUSYBOX_ASH=_tmp/shells/ash") "BUSYBOX_ASH="))
(("BUSYBOX_ASH=_tmp/shells/ash") "BUSYBOX_ASH=")
(("readonly DASH=\\$[(]shell-path dash[)]") "readonly DASH=")
(("readonly MKSH=\\$[(]shell-path mksh[)]") "readonly MKSH=")
(("readonly ZSH=\\$[(]shell-path zsh[)]") "readonly ZSH="))
;; This is not necessary, but it makes the output nicer.
(substitute* "test/spec.sh"