mirror of
https://github.com/daylinmorgan/bbansi.git
synced 2024-12-21 18:40:44 -06:00
fix: add existence check for cli test
This commit is contained in:
parent
3db462973b
commit
e77ad85cd3
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ suite "cli":
|
|||
cli = pathToSrc / "bbansi.out"
|
||||
srcDir = pathToSrc / ".." / "src"
|
||||
cmd = "nim c -o:" & cli & " " & (srcDir / "bbansi.nim")
|
||||
if getFileInfo(cli).lastWriteTime < getFileInfo(srcDir).lastWriteTime:
|
||||
if not cli.fileExists or getFileInfo(cli).lastWriteTime < getFileInfo(srcDir).lastWriteTime:
|
||||
check execCmdEx(cmd).exitCode == 0
|
||||
test "simple":
|
||||
check "\e[31mRed\e[0m" == cliRun "[red]Red[/]"
|
||||
|
|
Loading…
Reference in a new issue