From 9e117bd93bffdd70e83801e58f88f3f64d9bf5ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20=C5=9Aliwak?= Date: Wed, 16 Feb 2022 19:17:23 +0100 Subject: [PATCH] storebytecode.sh: Look for scripts at relative locations, not in REPO_ROOT --- scripts/bytecodecompare/storebytecode.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/bytecodecompare/storebytecode.sh b/scripts/bytecodecompare/storebytecode.sh index e41c90c84..9a771dd0e 100755 --- a/scripts/bytecodecompare/storebytecode.sh +++ b/scripts/bytecodecompare/storebytecode.sh @@ -41,7 +41,7 @@ TMPDIR=$(mktemp -d) ( cd "$TMPDIR" - "$REPO_ROOT"/scripts/isolate_tests.py "$REPO_ROOT"/test/ + "${SCRIPT_DIR}/../isolate_tests.py" "${REPO_ROOT}/test/" if [[ "$SOLC_EMSCRIPTEN" = "On" ]] then @@ -54,7 +54,7 @@ TMPDIR=$(mktemp -d) npm run build popd - cp "$REPO_ROOT/scripts/bytecodecompare/prepare_report.js" . + cp "${SCRIPT_DIR}/prepare_report.js" . npm install ./solc-js/dist echo "Running the compiler..." @@ -62,7 +62,7 @@ TMPDIR=$(mktemp -d) ./prepare_report.js *.sol > report.txt echo "Finished running the compiler." else - "$REPO_ROOT/scripts/bytecodecompare/prepare_report.py" "$BUILD_DIR/solc/solc" + "${SCRIPT_DIR}/prepare_report.py" "$BUILD_DIR/solc/solc" fi cp report.txt "$REPO_ROOT"