From 2f652a1de91ade0873ae0ca2aa09a402ecb772d9 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Wed, 29 Mar 2017 18:46:47 +0200 Subject: [PATCH] Speed up tests/run.sh on Travis (#1682) tests/run.sh waits for awesome to exit via tail's "--pid" option. This makes tail check once per second if the process still exists and if not, tail will exit. However, the default of "once per second" causes lots of wasted time for us. This commit adds the argument "-s 0.1" to tail which makes tail check once every 0.1 seconds. This commit changes the time that "tests/run.sh" runs on Travis from about 60 seconds to about 35 seconds, which is a big improvement. Closes: https://github.com/awesomeWM/awesome/issues/1374 Signed-off-by: Uli Schlachter --- tests/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/run.sh b/tests/run.sh index ed2a6047..fae0fb98 100755 --- a/tests/run.sh +++ b/tests/run.sh @@ -210,7 +210,7 @@ for f in $tests; do DISPLAY=$D "$AWESOME_CLIENT" 2>&1 < "$f" # Tail the log and quit, when awesome quits. - tail -n 100000 -f --pid "$awesome_pid" "$awesome_log" + tail -n 100000 -s 0.1 -f --pid "$awesome_pid" "$awesome_log" set +e wait $awesome_pid