[PATCH] tests: Fix the build failure on s390

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The build works fine on other architectures with commit 0b4f76fc5, but
for s390:

TEST: virscsitest
 1) test1  ... OK
 2) test2  ... libvirt:  error : SCSI device '1:0:0:0': could not access
 /builddir/build/BUILD/libvirt-1.1.1/tests/virscsidata/sg8: No such file
 or directory
FAILED

It's caused by the "patch" on the s390 system either doesn't create
the "empty files", or removed them after the patch was applied. Anyway,
this patch is to fix it by simply adding useless numbers to the 2
test input files.
---
 tests/virscsidata/sg0 | 1 +
 tests/virscsidata/sg8 | 1 +
 2 files changed, 2 insertions(+)

diff --git a/tests/virscsidata/sg0 b/tests/virscsidata/sg0
index e69de29..573541a 100644
--- a/tests/virscsidata/sg0
+++ b/tests/virscsidata/sg0
@@ -0,0 +1 @@
+0
diff --git a/tests/virscsidata/sg8 b/tests/virscsidata/sg8
index e69de29..45a4fb7 100644
--- a/tests/virscsidata/sg8
+++ b/tests/virscsidata/sg8
@@ -0,0 +1 @@
+8
-- 
1.8.1.4

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]