mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
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:
commit
dd7aebe7f1
@ -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"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user