Merge pull request #8769 from ethereum/fix-cmdlinetests-not-removing-tmp-all-files

Fix cmdlineTests.sh not removing all tmp.XXXXXX files
This commit is contained in:
chriseth 2020-04-24 15:35:17 +02:00 committed by GitHub
commit dd7aebe7f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -126,7 +126,7 @@ function test_solc_behaviour()
# Remove trailing empty lines. Needs a line break to make OSX sed happy. # Remove trailing empty lines. Needs a line break to make OSX sed happy.
sed -i.bak -e '1{/^$/d sed -i.bak -e '1{/^$/d
}' "$stderr_path" }' "$stderr_path"
rm "$stderr_path.bak" rm "$stderr_path.bak" "$stdout_path.bak"
fi fi
# Remove path to cpp file # Remove path to cpp file
sed -i.bak -e 's/^\(Exception while assembling:\).*/\1/' "$stderr_path" sed -i.bak -e 's/^\(Exception while assembling:\).*/\1/' "$stderr_path"
@ -175,6 +175,8 @@ function test_solc_behaviour()
exit 1 exit 1
fi fi
fi fi
rm -f "$stdout_path" "$stderr_path"
} }