OSDN Git Service

tests: two more of these: use "compare exp out", not "compare out exp"
authorJim Meyering <meyering@redhat.com>
Sat, 3 Dec 2011 14:36:36 +0000 (15:36 +0100)
committerJim Meyering <meyering@redhat.com>
Sat, 3 Dec 2011 14:38:11 +0000 (15:38 +0100)
* tests/t7000-scripting.sh: Reverse compare arguments.
* tests/t2310-dos-extended-2-sector-min-offset.sh: Likewise.

tests/t2310-dos-extended-2-sector-min-offset.sh
tests/t7000-scripting.sh

index aa05099..a4b4325 100644 (file)
@@ -52,7 +52,7 @@ compare /dev/null out || fail=1
 # Provoke a failure by trying to create a partition that starts just
 # one sector after the start of the extended partition.
 parted --align=min -s $scsi_dev mkpart logical 65s 128s > err 2>&1 && fail=1
-compare err err.exp || fail=1
+compare err.exp err || fail=1
 
 # The above failed, but created the partition nonetheless.  Remove it.
 parted -s $scsi_dev rm 5 || fail=1
index 1b93a58..032b3d5 100755 (executable)
@@ -52,7 +52,7 @@ for mkpart in mkpart; do
 
   # Compare the real error and the expected one
   normalize_part_diag_ out || fail=1
-  compare out err.expected || fail=1
+  compare err.expected out || fail=1
 
   # Test mkpart interactive mode.
   # Create the test file