mirror of https://github.com/xzeldon/htop.git
Better support for testing under wip branch
This commit is contained in:
parent
cb8ac6b0f1
commit
e5b08447fe
|
@ -12,6 +12,16 @@ local rote = require("rote")
|
||||||
|
|
||||||
local rt = rote.RoteTerm(24, 80)
|
local rt = rote.RoteTerm(24, 80)
|
||||||
|
|
||||||
|
local function os_execread(cmd)
|
||||||
|
local fd = io.popen(cmd, "r")
|
||||||
|
local out = fd:read("*a")
|
||||||
|
fd:close()
|
||||||
|
return (out:gsub("\n$", ""))
|
||||||
|
end
|
||||||
|
local branch = os_execread("git branch | grep '*'"):sub(3)
|
||||||
|
|
||||||
|
print("Running in branch "..branch)
|
||||||
|
|
||||||
os.execute("make coverage")
|
os.execute("make coverage")
|
||||||
os.execute("rm -f *.gcda */*.gcda")
|
os.execute("rm -f *.gcda */*.gcda")
|
||||||
os.execute("rm -f coverage.info test.htoprc")
|
os.execute("rm -f coverage.info test.htoprc")
|
||||||
|
@ -110,7 +120,7 @@ local y_panelhdr = (function()
|
||||||
end
|
end
|
||||||
end)() or 1
|
end)() or 1
|
||||||
|
|
||||||
local x_metercol2 = 43
|
local x_metercol2 = (branch == "wip") and 41 or 43
|
||||||
|
|
||||||
show()
|
show()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue