summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarel Zak2012-07-30 17:43:10 +0200
committerKarel Zak2012-07-30 17:43:10 +0200
commit46949388c6945fcbdcd5bc059fd5fb10a1e56597 (patch)
treefd583c4c10f5f0da39d531afaf13c14fd2b5a6e0
parentutil-linux: Document new FAT options (diff)
downloadkernel-qcow2-util-linux-46949388c6945fcbdcd5bc059fd5fb10a1e56597.tar.gz
kernel-qcow2-util-linux-46949388c6945fcbdcd5bc059fd5fb10a1e56597.tar.xz
kernel-qcow2-util-linux-46949388c6945fcbdcd5bc059fd5fb10a1e56597.zip
tests: remove lt- prefixes
Reported-by: Bernhard Voelker <mail@bernhard-voelker.de> Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r--tests/expected/fdisk/oddinput4
-rw-r--r--tests/functions.sh3
2 files changed, 5 insertions, 2 deletions
diff --git a/tests/expected/fdisk/oddinput b/tests/expected/fdisk/oddinput
index 14f2528c8..a681d0d2f 100644
--- a/tests/expected/fdisk/oddinput
+++ b/tests/expected/fdisk/oddinput
@@ -9,6 +9,6 @@ Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Nonexistant file
-lt-fdisk: cannot open _a_file_that_does_not_exist_: No such file or directory
+fdisk: cannot open _a_file_that_does_not_exist_: No such file or directory
Too small file
-lt-fdisk: cannot open oddinput.toosmall: Invalid argument
+fdisk: cannot open oddinput.toosmall: Invalid argument
diff --git a/tests/functions.sh b/tests/functions.sh
index eee6be352..0613505fe 100644
--- a/tests/functions.sh
+++ b/tests/functions.sh
@@ -235,6 +235,9 @@ function ts_gen_diff {
if [ -s "$TS_OUTPUT" ]; then
+ # remove libtool lt- prefixes
+ sed --in-place 's/^lt\-\(.*\: \)/\1/g' $TS_OUTPUT
+
[ -d "$TS_DIFFDIR" ] || mkdir -p "$TS_DIFFDIR"
diff -u $TS_EXPECTED $TS_OUTPUT > $TS_DIFF