From 96d748fdad6bdd07847a163c3846e5c3f0786f40 Mon Sep 17 00:00:00 2001 From: chriseth Date: Tue, 16 Apr 2019 14:43:32 +0200 Subject: [PATCH] Remove "pwd" calls, path is already absolute. --- test/cmdlineTests.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/test/cmdlineTests.sh b/test/cmdlineTests.sh index d843b304e..cc2a20658 100755 --- a/test/cmdlineTests.sh +++ b/test/cmdlineTests.sh @@ -263,13 +263,13 @@ printTask "Running general commandline tests..." inputFile="" stdin="${tdir}/input.json" stdout="$(cat ${tdir}/output.json 2>/dev/null || true)" - stdoutExpectationFile="$(pwd)/${tdir}/output.json" + stdoutExpectationFile="${tdir}/output.json" args="--standard-json "$(cat ${tdir}/args 2>/dev/null || true) else inputFile="${tdir}input.sol" stdin="" stdout="$(cat ${tdir}/output 2>/dev/null || true)" - stdoutExpectationFile="$(pwd)/${tdir}/output" + stdoutExpectationFile="${tdir}/output" args=$(cat ${tdir}/args 2>/dev/null || true) fi exitCode=$(cat ${tdir}/exit 2>/dev/null || true) @@ -303,8 +303,6 @@ printTask "Compiling all examples from the documentation..." SOLTMPDIR=$(mktemp -d) ( set -e - cd "$REPO_ROOT" - REPO_ROOT=$(pwd) # make it absolute cd "$SOLTMPDIR" "$REPO_ROOT"/scripts/isolate_tests.py "$REPO_ROOT"/docs/ docs for f in *.sol @@ -431,8 +429,6 @@ printTask "Testing soljson via the fuzzer..." SOLTMPDIR=$(mktemp -d) ( set -e - cd "$REPO_ROOT" - REPO_ROOT=$(pwd) # make it absolute cd "$SOLTMPDIR" "$REPO_ROOT"/scripts/isolate_tests.py "$REPO_ROOT"/test/ "$REPO_ROOT"/scripts/isolate_tests.py "$REPO_ROOT"/docs/ docs