diff options
author | chriseth <chris@ethereum.org> | 2017-06-20 20:31:09 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2017-06-20 23:47:06 +0800 |
commit | 314f8beef147002adb6a090b203a6fa6ce983c6e (patch) | |
tree | a6e3d47926b044f2e3c37a4222585ff021fdb4b6 /scripts | |
parent | 26ea9ce07cf85849cd881465a4322f14bff87eb8 (diff) | |
download | dexon-solidity-314f8beef147002adb6a090b203a6fa6ce983c6e.tar.gz dexon-solidity-314f8beef147002adb6a090b203a6fa6ce983c6e.tar.zst dexon-solidity-314f8beef147002adb6a090b203a6fa6ce983c6e.zip |
This might fix our windows tests.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/bytecodecompare/prepare_report.py | 2 | ||||
-rw-r--r-- | scripts/bytecodecompare/storebytecode.bat | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/scripts/bytecodecompare/prepare_report.py b/scripts/bytecodecompare/prepare_report.py index 5a770981..427724b7 100755 --- a/scripts/bytecodecompare/prepare_report.py +++ b/scripts/bytecodecompare/prepare_report.py @@ -6,7 +6,7 @@ import subprocess import json solc = sys.argv[1] -report = open("report.txt", "w") +report = open("report.txt", "wb") for optimize in [False, True]: for f in sorted(glob.glob("*.sol")): diff --git a/scripts/bytecodecompare/storebytecode.bat b/scripts/bytecodecompare/storebytecode.bat index aa829d20..e64e9276 100644 --- a/scripts/bytecodecompare/storebytecode.bat +++ b/scripts/bytecodecompare/storebytecode.bat @@ -27,15 +27,16 @@ cd bytecode ..\scripts\isolate_tests.py ..\test\ ..\scripts\bytecodecompare\prepare_report.py ..\build\solc\%CONFIGURATION%\solc.exe -git clone --depth 2 git@github.com:ethereum/solidity-test-bytecode.git +REM Send to stdout instead of stderr to not confuse powershell +git clone --depth 2 git@github.com:ethereum/solidity-test-bytecode.git 2>&1 cd solidity-test-bytecode git config user.name "travis" git config user.email "chris@ethereum.org" -git clean -f -d -x +git clean -f -d -x 2>&1 if not exist %DIRECTORY% mkdir %DIRECTORY% set REPORT=%DIRECTORY%/windows.txt cp ../report.txt %REPORT% git add %REPORT% git commit -a -m "Added report." -git push origin +git push origin 2>&1 |