aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2017-09-05 00:26:22 +0200
committerKarel Kočí <cynerd@email.cz>2017-09-05 00:26:22 +0200
commitccf2283819a631cec62ceaec233ee845f28d59d8 (patch)
treeb6513318581dfb3e04b011a377424ae8b6e60a3a
parent375607d9969896c894fa2642ce4a0b8b519a2adb (diff)
downloadqtmips-ccf2283819a631cec62ceaec233ee845f28d59d8.tar.gz
qtmips-ccf2283819a631cec62ceaec233ee845f28d59d8.tar.bz2
qtmips-ccf2283819a631cec62ceaec233ee845f28d59d8.zip
Drop pushd and popd as those are not posix compatible
-rw-r--r--tests/test.sh5
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() {