]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
TEST-99-RPM: add test_check() for rpm,dnf,yum
authorHarald Hoyer <harald@redhat.com>
Mon, 7 Nov 2016 12:20:35 +0000 (13:20 +0100)
committerHarald Hoyer <harald@redhat.com>
Mon, 7 Nov 2016 12:20:35 +0000 (13:20 +0100)
test/TEST-99-RPM/test.sh

index 04bf0bc309c826f48ad2ac86e62126adb7eebe44..23fa72cfe49c5d9213a1f61a2b29d7fdd0937c43 100755 (executable)
@@ -1,7 +1,10 @@
 #!/bin/bash
 
 TEST_DESCRIPTION="rpm integrity after dracut and kernel install"
-$TESTDIR
+
+test_check() {
+    command -v rpm &>/dev/null && ( command -v yum || command -v dnf ) &>/dev/null
+}
 
 test_run() {
     set -x