[Libguestfs] [PATCH 25/46] tests/md: Fix error path to display the correct output.

Richard W.M. Jones rjones at redhat.com
Sat Aug 24 12:37:01 UTC 2013


From: "Richard W.M. Jones" <rjones at redhat.com>

(cherry picked from commit 42abbf096932bd1e6c9c1bef64f602a67107d088)
(cherry picked from commit c55592a89443c8398b4521c3269e2fbc71486da2)
---
 tests/md/test-list-filesystems.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/md/test-list-filesystems.sh b/tests/md/test-list-filesystems.sh
index 642e033..b4e41e9 100755
--- a/tests/md/test-list-filesystems.sh
+++ b/tests/md/test-list-filesystems.sh
@@ -73,7 +73,7 @@ expected="/dev/sda1: ext3
 # Check the output of list-filesystems
 if [ "$(cat test.output)" != "$expected" ]; then
     echo "$0: error: output of list-filesystems did not match expected output"
-    printf "%s\n" "$output"
+    cat list-fs.output
     exit 1;
 fi
 
-- 
1.8.3.1




More information about the Libguestfs mailing list