From 4a005e2551829d177f7403b0e5b1464066764cfb Mon Sep 17 00:00:00 2001 From: Boris Faure Date: Fri, 25 Dec 2020 13:46:38 +0100 Subject: [PATCH] tests: add missing utils.sh --- tests/utils.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/utils.sh diff --git a/tests/utils.sh b/tests/utils.sh new file mode 100644 index 00000000..f65f2016 --- /dev/null +++ b/tests/utils.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +test_sleep() +{ + #only sleep when running the test within terminology with test ui on + if [ "$IN_TY_TEST_UI" -eq "1" ]; then + sleep "$1" + fi +}