Remove "pwd" calls, path is already absolute.

This commit is contained in:
chriseth 2019-04-16 14:43:32 +02:00
parent 6bc5068a67
commit 96d748fdad

View File

@ -263,13 +263,13 @@ printTask "Running general commandline tests..."
inputFile="" inputFile=""
stdin="${tdir}/input.json" stdin="${tdir}/input.json"
stdout="$(cat ${tdir}/output.json 2>/dev/null || true)" 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) args="--standard-json "$(cat ${tdir}/args 2>/dev/null || true)
else else
inputFile="${tdir}input.sol" inputFile="${tdir}input.sol"
stdin="" stdin=""
stdout="$(cat ${tdir}/output 2>/dev/null || true)" stdout="$(cat ${tdir}/output 2>/dev/null || true)"
stdoutExpectationFile="$(pwd)/${tdir}/output" stdoutExpectationFile="${tdir}/output"
args=$(cat ${tdir}/args 2>/dev/null || true) args=$(cat ${tdir}/args 2>/dev/null || true)
fi fi
exitCode=$(cat ${tdir}/exit 2>/dev/null || true) exitCode=$(cat ${tdir}/exit 2>/dev/null || true)
@ -303,8 +303,6 @@ printTask "Compiling all examples from the documentation..."
SOLTMPDIR=$(mktemp -d) SOLTMPDIR=$(mktemp -d)
( (
set -e set -e
cd "$REPO_ROOT"
REPO_ROOT=$(pwd) # make it absolute
cd "$SOLTMPDIR" cd "$SOLTMPDIR"
"$REPO_ROOT"/scripts/isolate_tests.py "$REPO_ROOT"/docs/ docs "$REPO_ROOT"/scripts/isolate_tests.py "$REPO_ROOT"/docs/ docs
for f in *.sol for f in *.sol
@ -431,8 +429,6 @@ printTask "Testing soljson via the fuzzer..."
SOLTMPDIR=$(mktemp -d) SOLTMPDIR=$(mktemp -d)
( (
set -e set -e
cd "$REPO_ROOT"
REPO_ROOT=$(pwd) # make it absolute
cd "$SOLTMPDIR" cd "$SOLTMPDIR"
"$REPO_ROOT"/scripts/isolate_tests.py "$REPO_ROOT"/test/ "$REPO_ROOT"/scripts/isolate_tests.py "$REPO_ROOT"/test/
"$REPO_ROOT"/scripts/isolate_tests.py "$REPO_ROOT"/docs/ docs "$REPO_ROOT"/scripts/isolate_tests.py "$REPO_ROOT"/docs/ docs