]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: remove lt- prefixes
authorKarel Zak <kzak@redhat.com>
Mon, 30 Jul 2012 15:43:10 +0000 (17:43 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 30 Jul 2012 15:43:10 +0000 (17:43 +0200)
Reported-by: Bernhard Voelker <mail@bernhard-voelker.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/expected/fdisk/oddinput
tests/functions.sh

index 14f2528c8d65769110741f2e47d3aa57f2dad665..a681d0d2f8faf4a8cefefa1981161e85c630c89e 100644 (file)
@@ -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
index eee6be35220606e849431719689140a93b5107a1..0613505fe24a212611fa218d420f171b7bcc51f4 100644 (file)
@@ -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