summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2017-03-20 15:46:42 +0100
committerMichael Schroeder <mls@suse.de>2017-03-20 15:46:42 +0100
commitd28c2bf1250884b6953e59b89e9111996f0d001c (patch)
treeeaa67f6854b315dca330e3b2e855120a03a14bd9
parent79ca74e15e15c1d91a9a31a9ee90abc91736f390 (diff)
downloadrpm-d28c2bf1250884b6953e59b89e9111996f0d001c.tar.gz
Add workaround for old binutils versions
readelf used to append a bogus tab to the --debug-dump=info output. Add a sed call to get rid of it.
-rw-r--r--tests/rpmbuild.at4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/rpmbuild.at b/tests/rpmbuild.at
index dcbdd2cad..a412e4268 100644
--- a/tests/rpmbuild.at
+++ b/tests/rpmbuild.at
@@ -734,7 +734,7 @@ ls ./usr/src/debug/ | cut -f1,2 -d\.
# Check that the source path has been rewritten in the .debug file.
# Drop the final arch prefix to make the test arch-independent.
readelf --debug-dump=info ./usr/lib/debug/usr/local/bin/hello2*.debug \
- | grep comp_dir | cut -f5- -d/ | cut -f1,2 -d\.
+ | grep comp_dir | sed -e 's/\t$//' | cut -f5- -d/ | cut -f1,2 -d\.
],
[0],
[hello2-1.0-1
@@ -773,7 +773,7 @@ ls ./usr/src/debug/
# Check that the source path has been rewritten in the .debug file.
readelf --debug-dump=info ./usr/lib/debug/usr/local/bin/hello2*.debug \
- | grep comp_dir | cut -f5- -d/
+ | grep comp_dir | sed -e 's/\t$//' | cut -f5- -d/
],
[0],
[hello-1.0