mirror of
https://github.com/daylinmorgan/bbansi.git
synced 2024-11-21 17:00: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"
|
cli = pathToSrc / "bbansi.out"
|
||||||
srcDir = pathToSrc / ".." / "src"
|
srcDir = pathToSrc / ".." / "src"
|
||||||
cmd = "nim c -o:" & cli & " " & (srcDir / "bbansi.nim")
|
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
|
check execCmdEx(cmd).exitCode == 0
|
||||||
test "simple":
|
test "simple":
|
||||||
check "\e[31mRed\e[0m" == cliRun "[red]Red[/]"
|
check "\e[31mRed\e[0m" == cliRun "[red]Red[/]"
|
||||||
|
|
Loading…
Reference in a new issue