Regression tests
This commit is contained in:
parent
7f7d0a0aa2
commit
69274ed7f9
1 changed files with 1 additions and 2 deletions
|
@ -201,7 +201,7 @@ def show_timestamp():
|
||||||
|
|
||||||
|
|
||||||
def show_git_info(src_dir):
|
def show_git_info(src_dir):
|
||||||
out, _ = run("cd {0}; git show -s '--format=%h %s %d'".format(src_dir), True).communicate()
|
out, _ = run("cd {0}; git show -s '--format=[%ci] %h %s %d'".format(src_dir), True).communicate()
|
||||||
print("Last commit:", out.strip())
|
print("Last commit:", out.strip())
|
||||||
diff, _ = run("cd {0}; git diff".format(src_dir), True).communicate()
|
diff, _ = run("cd {0}; git diff".format(src_dir), True).communicate()
|
||||||
diff = diff.strip()
|
diff = diff.strip()
|
||||||
|
@ -283,7 +283,6 @@ def check_busy():
|
||||||
out, _ = run("top -bn5 | grep 'Cpu(s)' | grep -o '[0-9\.]* id' | cut -d ' ' -f 1", True).communicate()
|
out, _ = run("top -bn5 | grep 'Cpu(s)' | grep -o '[0-9\.]* id' | cut -d ' ' -f 1", True).communicate()
|
||||||
load_samples = []
|
load_samples = []
|
||||||
for line in out.split("\n"):
|
for line in out.split("\n"):
|
||||||
print(line)
|
|
||||||
line = line.strip()
|
line = line.strip()
|
||||||
if line:
|
if line:
|
||||||
load_samples.append(100. - float(line))
|
load_samples.append(100. - float(line))
|
||||||
|
|
Loading…
Reference in a new issue