tests: Fix tests when run on AWS.
authorRichard W.M. Jones <rjones@redhat.com>
Wed, 31 Oct 2018 15:35:34 +0000 (15:35 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Wed, 31 Oct 2018 15:37:34 +0000 (15:37 +0000)
When running on AWS two of the tests failed.  This was because the
tests did _not_ include a working dmidecode binary, hence the platform
dmidecode binary was being run instead, and that was detecting as AWS
owing to the previous commit.  Fix this by supplying a working
dmidecode binary for those tests.

tests/ldoms/sbin/dmidecode [new file with mode: 0755]
tests/ppc64-baremetal/sbin/dmidecode [changed mode: 0644->0755]

diff --git a/tests/ldoms/sbin/dmidecode b/tests/ldoms/sbin/dmidecode
new file mode 100755 (executable)
index 0000000..3efbee3
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh -
+# dmidecode fails on this platform.
+exit 1
old mode 100644 (file)
new mode 100755 (executable)