all repos — tint2 @ 683d49bc719035aefad6fab6480f3d33964d1e50

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

Regression tests
o9000 mrovi9000@gmail.com
commit

683d49bc719035aefad6fab6480f3d33964d1e50

parent

da77f89910122d9b8c9629e67ccab89174ce6b60

1 files changed, 11 insertions(+), 0 deletions(-)

jump to
M test/regression.pytest/regression.py

@@ -279,10 +279,21 @@ def get_default_src_dir():

return os.path.realpath(os.path.dirname(os.path.realpath(__file__)) + "/../") +def check_busy(): + out, _ = run("""top -bn5 | grep "Cpu(s)" | sed "s/.*, *\([0-9.]*\)%* id.*/\1/" | awk '{print 100 - $1"%"}' | tail -n +2""", True).communicate() + load = 0 + for line in out.split("\n"): + load = max(load, float(line.replace("%", ""))) + if load > 10.0: + raise RuntimeError("The system appears busy.") + + def main(): parser = argparse.ArgumentParser() parser.add_argument("--src_dir", default=get_default_src_dir()) args = parser.parse_args() + stop_xvfb() + check_busy() show_timestamp() show_git_info(args.src_dir) show_system_info()