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

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