From 5c5f8e8dad9024de15e091bd5639eabb48648c3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20=C5=9Aliwak?= Date: Thu, 1 Jun 2023 20:13:35 +0200 Subject: [PATCH] cmdlineTests: Remove superfluous set and temporary dirs --- test/cmdlineTests/~documentation_examples/test.sh | 2 -- test/cmdlineTests/~soljson_via_fuzzer/test.sh | 2 -- test/cmdlineTests/~standard_input/test.sh | 2 -- 3 files changed, 6 deletions(-) diff --git a/test/cmdlineTests/~documentation_examples/test.sh b/test/cmdlineTests/~documentation_examples/test.sh index 4d90acaf4..7d7b7fa7d 100755 --- a/test/cmdlineTests/~documentation_examples/test.sh +++ b/test/cmdlineTests/~documentation_examples/test.sh @@ -7,8 +7,6 @@ source "${REPO_ROOT}/scripts/common.sh" source "${REPO_ROOT}/scripts/common_cmdline.sh" SOLTMPDIR=$(mktemp -d) - -set -e cd "$SOLTMPDIR" "$REPO_ROOT"/scripts/isolate_tests.py "$REPO_ROOT"/docs/ diff --git a/test/cmdlineTests/~soljson_via_fuzzer/test.sh b/test/cmdlineTests/~soljson_via_fuzzer/test.sh index ae52a8bc3..42410947f 100755 --- a/test/cmdlineTests/~soljson_via_fuzzer/test.sh +++ b/test/cmdlineTests/~soljson_via_fuzzer/test.sh @@ -5,8 +5,6 @@ set -euo pipefail source "${REPO_ROOT}/scripts/common.sh" SOLTMPDIR=$(mktemp -d) - -set -e cd "$SOLTMPDIR" "$REPO_ROOT"/scripts/isolate_tests.py "$REPO_ROOT"/test/ diff --git a/test/cmdlineTests/~standard_input/test.sh b/test/cmdlineTests/~standard_input/test.sh index 243e74a71..4aab34be1 100755 --- a/test/cmdlineTests/~standard_input/test.sh +++ b/test/cmdlineTests/~standard_input/test.sh @@ -4,7 +4,6 @@ set -euo pipefail # shellcheck source=scripts/common.sh source "${REPO_ROOT}/scripts/common.sh" -SOLTMPDIR=$(mktemp -d) set +e output=$("$SOLC" --bin 2>&1) result=$? @@ -25,4 +24,3 @@ fi # This should not fail echo '' | msg_on_error --silent --msg "Incorrect response to --ast-compact-json option with empty stdin" \ "$SOLC" --ast-compact-json - -rm -r "$SOLTMPDIR"