summaryrefslogtreecommitdiffstats
path: root/tests/functions.sh
diff options
context:
space:
mode:
authorKarel Zak2016-01-05 12:31:32 +0100
committerKarel Zak2016-01-05 12:31:32 +0100
commit98604ef9f25360d6d3bcaf9dd99a35a51d49333f (patch)
tree457e7e2a5d042475761cc97430be56ea77b25a0e /tests/functions.sh
parenttests: wipefs fix, ts_init was called too late (diff)
downloadkernel-qcow2-util-linux-98604ef9f25360d6d3bcaf9dd99a35a51d49333f.tar.gz
kernel-qcow2-util-linux-98604ef9f25360d6d3bcaf9dd99a35a51d49333f.tar.xz
kernel-qcow2-util-linux-98604ef9f25360d6d3bcaf9dd99a35a51d49333f.zip
tests: fallback for missing TS_DESC
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/functions.sh')
-rw-r--r--tests/functions.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/functions.sh b/tests/functions.sh
index c7e0ded61..1f4d51878 100644
--- a/tests/functions.sh
+++ b/tests/functions.sh
@@ -229,6 +229,7 @@ function ts_init_env {
TS_SUBDIR=$(dirname $TS_SCRIPT)
TS_TESTNAME=$(basename $TS_SCRIPT)
TS_COMPONENT=$(basename $TS_SUBDIR)
+ TS_DESC=${TS_DESC:-$TS_TESTNAME}
TS_NSUBTESTS=0
TS_NSUBFAILED=0