tests: add missing utils.sh

This commit is contained in:
Boris Faure 2020-12-25 13:46:38 +01:00
parent 759eeb8168
commit 4a005e2551
Signed by: borisfaure
GPG Key ID: 35C0410516166BE8
1 changed files with 9 additions and 0 deletions

9
tests/utils.sh Normal file
View File

@ -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
}