diff options
author | Karel Kočí <cynerd@email.cz> | 2017-09-05 00:26:22 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2017-09-05 00:26:22 +0200 |
commit | ccf2283819a631cec62ceaec233ee845f28d59d8 (patch) | |
tree | b6513318581dfb3e04b011a377424ae8b6e60a3a /tests | |
parent | 375607d9969896c894fa2642ce4a0b8b519a2adb (diff) | |
download | qtmips-ccf2283819a631cec62ceaec233ee845f28d59d8.tar.gz qtmips-ccf2283819a631cec62ceaec233ee845f28d59d8.tar.bz2 qtmips-ccf2283819a631cec62ceaec233ee845f28d59d8.zip |
Drop pushd and popd as those are not posix compatible
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test.sh b/tests/test.sh index 7145a0c..aad0f5a 100644 --- a/tests/test.sh +++ b/tests/test.sh @@ -87,9 +87,10 @@ mips_compiler() { [ ! -d "$MIPS_COMPILER" ] || return 0 # Otherwise compile it mkdir -p "$TEST_DIR_ROOT" - pushd "$TEST_DIR_ROOT" >/dev/null + local ORIG="$(pwd)" + cd "$TEST_DIR_ROOT" "$PROJECT_ROOT"/compiler/compile.sh - popd >/dev/null + cd "$ORIG" } mips_make_test() { |