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

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