summaryrefslogtreecommitdiffstats
path: root/test_spec.lua
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2015-04-02 02:13:07 -0300
committerHisham Muhammad <hisham@gobolinux.org>2015-04-02 02:13:07 -0300
commite5b08447fe796034e28845cb3f1107ecf4b777db (patch)
treee98c44cd7c736817a33f60e33ecf478ac4ddf6b3 /test_spec.lua
parentcb8ac6b0f1f456f94efc8aead597faf6a95788da (diff)
Better support for testing under wip branch
Diffstat (limited to 'test_spec.lua')
-rwxr-xr-xtest_spec.lua12
1 files changed, 11 insertions, 1 deletions
diff --git a/test_spec.lua b/test_spec.lua
index e57437d6..efc6451f 100755
--- a/test_spec.lua
+++ b/test_spec.lua
@@ -12,6 +12,16 @@ local rote = require("rote")
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("rm -f *.gcda */*.gcda")
os.execute("rm -f coverage.info test.htoprc")
@@ -110,7 +120,7 @@ local y_panelhdr = (function()
end
end)() or 1
-local x_metercol2 = 43
+local x_metercol2 = (branch == "wip") and 41 or 43
show()

© 2014-2024 Faster IT GmbH | imprint | privacy policy