[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] tests: correct a root-only test
From: |
Jim Meyering |
Subject: |
[PATCH] tests: correct a root-only test |
Date: |
Thu, 29 Apr 2010 19:09:38 +0200 |
I ran the root-only tests (make check && sudo make check),
and noticed one was failing. Here's the fix:
>From 13f73aa1d72f46171ddfb56ff816d340564f4d5f Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Thu, 29 Apr 2010 19:02:07 +0200
Subject: [PATCH] tests: correct a root-only test
* tests/t2310-dos-extended-2-sector-min-offset.sh: Don't hard-code
"/dev/sdd5" in expected output.
---
tests/t2310-dos-extended-2-sector-min-offset.sh | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/tests/t2310-dos-extended-2-sector-min-offset.sh
b/tests/t2310-dos-extended-2-sector-min-offset.sh
index 550ded4..6d4b23c 100644
--- a/tests/t2310-dos-extended-2-sector-min-offset.sh
+++ b/tests/t2310-dos-extended-2-sector-min-offset.sh
@@ -39,6 +39,7 @@ scsi_debug_setup_ dev_size_mb=1 > dev-name ||
skip_test_ 'failed to create scsi_debug device'
scsi_dev=$(cat dev-name)
p1=${scsi_dev}1
+p5=${scsi_dev}5
cat <<EOF > exp || framework_failure
BYT;
@@ -48,7 +49,7 @@ $scsi_dev:2048s:scsi:512:512:msdos:Linux scsi_debug;
EOF
cat <<EOF > err.exp || framework_failure
-Error: Error informing the kernel about modifications to partition /dev/sdd5
-- Device or resource busy. This means Linux won't know about any changes you
made to /dev/sdd5 until you reboot -- so you shouldn't mount it or use it in
any way before rebooting.
+Error: Error informing the kernel about modifications to partition $p5 --
Device or resource busy. This means Linux won't know about any changes you
made to $p5 until you reboot -- so you shouldn't mount it or use it in any way
before rebooting.
Error: Failed to add partition 5 (Device or resource busy)
EOF
--
1.7.1.328.g9993c
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] tests: correct a root-only test,
Jim Meyering <=