summaryrefslogtreecommitdiffstats
path: root/tests/ts/login
diff options
context:
space:
mode:
authorSami Kerola2014-02-16 16:22:56 +0100
committerKarel Zak2014-03-07 11:52:57 +0100
commit2f791546395cb43f3f93de6c095c812c7cd5237f (patch)
tree0fe025270e9c5acbb15ef7d433c553a72fdfdf1e /tests/ts/login
parenttools: make config-gen to require build target argument (diff)
downloadkernel-qcow2-util-linux-2f791546395cb43f3f93de6c095c812c7cd5237f.tar.gz
kernel-qcow2-util-linux-2f791546395cb43f3f93de6c095c812c7cd5237f.tar.xz
kernel-qcow2-util-linux-2f791546395cb43f3f93de6c095c812c7cd5237f.zip
tests: check commands needed for running a test exist
Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/ts/login')
-rwxr-xr-xtests/ts/login/islocal2
-rwxr-xr-xtests/ts/login/logindefs2
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/ts/login/islocal b/tests/ts/login/islocal
index a1a7a3b60..bb372705b 100755
--- a/tests/ts/login/islocal
+++ b/tests/ts/login/islocal
@@ -21,6 +21,8 @@ TS_DESC="islocal"
. $TS_TOPDIR/functions.sh
ts_init "$*"
+ts_check_test_command "$TS_HELPER_ISLOCAL"
+
$TS_HELPER_ISLOCAL "$TS_SELF/islocal.data" root nobody "" youngman youngman2 \
abcdefghx nobo long rot al malformed \
nonl znobody >> $TS_OUTPUT
diff --git a/tests/ts/login/logindefs b/tests/ts/login/logindefs
index 0b3b9a44c..2db3f89fa 100755
--- a/tests/ts/login/logindefs
+++ b/tests/ts/login/logindefs
@@ -10,6 +10,8 @@ TS_DESC="defs"
. $TS_TOPDIR/functions.sh
ts_init "$*"
+ts_check_test_command "$TS_HELPER_LOGINDEFS"
+
# list all items
$TS_HELPER_LOGINDEFS "$TS_SELF/logindefs.data" | sed 's:'$TS_SELF'/::g' >> $TS_OUTPUT