Blame SOURCES/0009-tests-Fix-tests-when-run-on-AWS.patch

ba34c6
From 4bceb38a6102ca95bde79205efaa643a0824d3a2 Mon Sep 17 00:00:00 2001
ba34c6
From: "Richard W.M. Jones" <rjones@redhat.com>
ba34c6
Date: Wed, 31 Oct 2018 15:35:34 +0000
ba34c6
Subject: [PATCH 09/12] tests: Fix tests when run on AWS.
ba34c6
ba34c6
When running on AWS two of the tests failed.  This was because the
ba34c6
tests did _not_ include a working dmidecode binary, hence the platform
ba34c6
dmidecode binary was being run instead, and that was detecting as AWS
ba34c6
owing to the previous commit.  Fix this by supplying a working
ba34c6
dmidecode binary for those tests.
ba34c6
---
ba34c6
 tests/ldoms/sbin/dmidecode           | 3 +++
ba34c6
 tests/ppc64-baremetal/sbin/dmidecode | 0
ba34c6
 2 files changed, 3 insertions(+)
ba34c6
 create mode 100755 tests/ldoms/sbin/dmidecode
ba34c6
 mode change 100644 => 100755 tests/ppc64-baremetal/sbin/dmidecode
ba34c6
ba34c6
diff --git a/tests/ldoms/sbin/dmidecode b/tests/ldoms/sbin/dmidecode
ba34c6
new file mode 100755
ba34c6
index 0000000..3efbee3
ba34c6
--- /dev/null
ba34c6
+++ b/tests/ldoms/sbin/dmidecode
ba34c6
@@ -0,0 +1,3 @@
ba34c6
+#!/bin/sh -
ba34c6
+# dmidecode fails on this platform.
ba34c6
+exit 1
ba34c6
diff --git a/tests/ppc64-baremetal/sbin/dmidecode b/tests/ppc64-baremetal/sbin/dmidecode
ba34c6
old mode 100644
ba34c6
new mode 100755
ba34c6
-- 
ba34c6
2.19.0.rc0
ba34c6