aboutsummaryrefslogtreecommitdiff
path: root/tests/machine-unit-tests/test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/machine-unit-tests/test.sh')
-rwxr-xr-xtests/machine-unit-tests/test.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/machine-unit-tests/test.sh b/tests/machine-unit-tests/test.sh
index 2f06965..8378eff 100755
--- a/tests/machine-unit-tests/test.sh
+++ b/tests/machine-unit-tests/test.sh
@@ -9,5 +9,7 @@ qtmips_make sub-qtmips_machine-tests
# Build test data
mips_make_test
+cd "$TEST_DIR"
+
# Run unit tests
qtmips_run qtmips_machine/tests/tst_machine || echo_fail "Test $TEST_NAME failed!"