aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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() {