runCI: logs now show CPU/OS/etc info to be self contained (#13486)
This commit is contained in:
parent
bd90199a2f
commit
11db28bc61
1 changed files with 5 additions and 0 deletions
5
koch.nim
5
koch.nim
|
|
@ -472,9 +472,14 @@ proc xtemp(cmd: string) =
|
||||||
finally:
|
finally:
|
||||||
copyExe(d / "bin" / "nim_backup".exe, d / "bin" / "nim".exe)
|
copyExe(d / "bin" / "nim_backup".exe, d / "bin" / "nim".exe)
|
||||||
|
|
||||||
|
proc hostInfo(): string =
|
||||||
|
"hostOS: $1, hostCPU: $2, int: $3, float: $4, cpuEndian: $5, cwd: $6" %
|
||||||
|
[hostOS, hostCPU, $int.sizeof, $float.sizeof, $cpuEndian, getCurrentDir()]
|
||||||
|
|
||||||
proc runCI(cmd: string) =
|
proc runCI(cmd: string) =
|
||||||
doAssert cmd.len == 0, cmd # avoid silently ignoring
|
doAssert cmd.len == 0, cmd # avoid silently ignoring
|
||||||
echo "runCI:", cmd
|
echo "runCI:", cmd
|
||||||
|
echo hostInfo()
|
||||||
# note(@araq): Do not replace these commands with direct calls (eg boot())
|
# note(@araq): Do not replace these commands with direct calls (eg boot())
|
||||||
# as that would weaken our testing efforts.
|
# as that would weaken our testing efforts.
|
||||||
when defined(posix): # appveyor (on windows) didn't run this
|
when defined(posix): # appveyor (on windows) didn't run this
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue