From ccf2283819a631cec62ceaec233ee845f28d59d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 5 Sep 2017 00:26:22 +0200 Subject: Drop pushd and popd as those are not posix compatible --- tests/test.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests') 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() { -- cgit v1.2.3