Blame 0153-TEST-99-RPM-add-test_check-for-rpm-dnf-yum.patch
|
Harald Hoyer |
53404a |
From e22e04ae151c5aa806fc44de8294292c1df2429f Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
53404a |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
53404a |
Date: Mon, 7 Nov 2016 13:20:35 +0100
|
|
Harald Hoyer |
53404a |
Subject: [PATCH] TEST-99-RPM: add test_check() for rpm,dnf,yum
|
|
Harald Hoyer |
53404a |
|
|
Harald Hoyer |
53404a |
---
|
|
Harald Hoyer |
53404a |
test/TEST-99-RPM/test.sh | 5 ++++-
|
|
Harald Hoyer |
53404a |
1 file changed, 4 insertions(+), 1 deletion(-)
|
|
Harald Hoyer |
53404a |
|
|
Harald Hoyer |
53404a |
diff --git a/test/TEST-99-RPM/test.sh b/test/TEST-99-RPM/test.sh
|
|
Harald Hoyer |
53404a |
index 04bf0bc..23fa72c 100755
|
|
Harald Hoyer |
53404a |
--- a/test/TEST-99-RPM/test.sh
|
|
Harald Hoyer |
53404a |
+++ b/test/TEST-99-RPM/test.sh
|
|
Harald Hoyer |
53404a |
@@ -1,7 +1,10 @@
|
|
Harald Hoyer |
53404a |
#!/bin/bash
|
|
Harald Hoyer |
53404a |
|
|
Harald Hoyer |
53404a |
TEST_DESCRIPTION="rpm integrity after dracut and kernel install"
|
|
Harald Hoyer |
53404a |
-$TESTDIR
|
|
Harald Hoyer |
53404a |
+
|
|
Harald Hoyer |
53404a |
+test_check() {
|
|
Harald Hoyer |
53404a |
+ command -v rpm &>/dev/null && ( command -v yum || command -v dnf ) &>/dev/null
|
|
Harald Hoyer |
53404a |
+}
|
|
Harald Hoyer |
53404a |
|
|
Harald Hoyer |
53404a |
test_run() {
|
|
Harald Hoyer |
53404a |
set -x
|