better html generator for the tester; fixes some VM bugs
This commit is contained in:
parent
a1713bc2f9
commit
fc452787e7
10 changed files with 202 additions and 46 deletions
|
|
@ -77,7 +77,8 @@ proc getMachine*: MachineId =
|
|||
name, system.hostOS, system.hostCPU).MachineId
|
||||
|
||||
proc getCommit: CommitId =
|
||||
let hash = "git log -n 1"()
|
||||
const commLen = "commit ".len
|
||||
let hash = "git log -n 1"()[commLen..commLen+10]
|
||||
let branch = "git symbolic-ref --short HEAD"()
|
||||
if hash.len == 0 or branch.len == 0: quit "cannot determine git HEAD"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue