Enable Windows CI (#714)

Also fix #676
This commit is contained in:
genotrance 2019-10-03 18:38:51 -05:00 committed by GitHub
commit a2ec2db8f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 45 additions and 22 deletions

View file

@ -1063,7 +1063,11 @@ proc test(options: Options) =
existsAfter = existsFile(binFileName)
canRemove = not existsBefore and existsAfter
if canRemove:
removeFile(binFileName)
try:
removeFile(binFileName)
except OSError as exc:
display("Warning:", "Failed to delete " & binFileName & ": " &
exc.msg, Warning, MediumPriority)
if failures == 0:
display("Success:", "All tests passed", Success, HighPriority)