Skip to content

Commit

Permalink
fix: avoid using pushd and popd
Browse files Browse the repository at this point in the history
  • Loading branch information
abrown committed Nov 22, 2024
1 parent 5795c3c commit 355683d
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions test/scripts/run-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@ ENGINE="${ENGINE:-wasmtime}"
[ -n "$WASM" ] || (echo "missing WASM variable" && exit 1)
[ -n "$DIR" ] || (echo "missing DIR variable" && exit 1)

pushd $DIR > /dev/null
mkdir -p fs
echo "$ENGINE $WASM" > cmd.sh
chmod +x cmd.sh
./cmd.sh &> output.log
[ $? -eq 0 ] || echo "Test failed" >> output.log
popd > /dev/null

cd $DIR
mkdir -p fs
echo "$ENGINE $WASM" > cmd.sh
chmod +x cmd.sh
./cmd.sh &> output.log
[ $? -eq 0 ] || echo "Test failed" >> output.log

0 comments on commit 355683d

Please sign in to comment.