Skip to content

Commit f0805f6

Browse files
committed
Fixed the chruby_auto tests that were failing on GitHub Action's macOS.
* GitHub Action's macOS image provides a different version of shunit2. * shnit2 runs tearDown an additional time after all test_* functions have been called. kward/shunit2#112
1 parent 955b51e commit f0805f6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/chruby_auto_test.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
. ./test/helper.sh
33

44
test_dir="$test_fixtures_dir/ruby_versions"
5+
old_pwd="$PWD"
56

67
function oneTimeSetUp()
78
{
@@ -165,7 +166,7 @@ function test_chruby_auto_ruby_version_containing_options()
165166

166167
function tearDown()
167168
{
168-
cd "$PWD"
169+
cd "$old_pwd"
169170
}
170171

171172
function oneTimeTearDown()

0 commit comments

Comments
 (0)