summaryrefslogtreecommitdiffstats
path: root/share/dtf/lib
diff options
context:
space:
mode:
authorPavel Raiskup <praiskup@redhat.com>2015-11-20 14:02:06 +0100
committerPavel Raiskup <praiskup@redhat.com>2015-11-20 14:02:06 +0100
commitaa0c1726b80eee693b092d4d2151eddc3a1bed36 (patch)
treefca80284506dd1e6e5d9c3ea3f6cdc398d4b0dad /share/dtf/lib
parent68a04dce41a7d9a42a87ff5aa7ad2b7206e69b02 (diff)
downloaddtf-aa0c1726b80eee693b092d4d2151eddc3a1bed36.tar.gz
dtf-aa0c1726b80eee693b092d4d2151eddc3a1bed36.tar.xz
dtf-aa0c1726b80eee693b092d4d2151eddc3a1bed36.zip
tests-api: fix 'dtf_prereq pkg installed/missing'
* share/dtf/lib/tests (dtf_pkg_install): Fix C&P mistakes. (dtf_pkg_remove): Likewise.
Diffstat (limited to 'share/dtf/lib')
-rw-r--r--share/dtf/lib/tests14
1 files changed, 6 insertions, 8 deletions
diff --git a/share/dtf/lib/tests b/share/dtf/lib/tests
index 3f104cb..3f6c752 100644
--- a/share/dtf/lib/tests
+++ b/share/dtf/lib/tests
@@ -119,19 +119,17 @@ dtf_pkg ()
dtf_pkg_install ()
{
- __dtf_assert_nargs 2 'dtf_pkg_install' ${1+"$@"}
- _d_pkg_rem=$1 ; shift
- dtf_pkg remove "$_d_pkg_inst"
- test $? -eq 0 || dtf_fail "can't remove '$_d_pkg_inst' package"
+ __dtf_assert_nargs 1 'dtf_pkg_install' ${1+"$@"}
+ dtf_pkg install "$1"
+ test $? -eq 0 || dtf_fail "can't install '$1' package"
}
dtf_pkg_remove ()
{
- __dtf_assert_nargs 1 'dtf_pkg_install' ${1+"$@"}
- _d_pkg_inst=$1 ; shift
- dtf_pkg install "$_d_pkg_inst"
- test $? -eq 0 || dtf_fail "can't install '$_d_pkg_inst' package"
+ __dtf_assert_nargs 1 'dtf_pkg_remove' ${1+"$@"}
+ dtf_pkg remove "$1"
+ test $? -eq 0 || dtf_fail "can't remove '$1' package"
}