aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyril Bur <cyril.bur@au1.ibm.com>2015-11-11 15:40:01 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-11-16 13:08:12 +1100
commitfc8a7e30dd27360514ea145d19bcc6a5820a6e3f (patch)
tree61886e7c037129e2fc09ddb8fe9129180aa90154
parent6d4f10a3b6a313874162122dace948f8465323da (diff)
downloadskiboot-fc8a7e30dd27360514ea145d19bcc6a5820a6e3f.zip
skiboot-fc8a7e30dd27360514ea145d19bcc6a5820a6e3f.tar.gz
skiboot-fc8a7e30dd27360514ea145d19bcc6a5820a6e3f.tar.bz2
external/tests: Add ability to strip version string from result
Signed-off-by: Cyril Bur <cyril.bur@au1.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
-rwxr-xr-xexternal/test/test.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/external/test/test.sh b/external/test/test.sh
index 5040633..cfea786 100755
--- a/external/test/test.sh
+++ b/external/test/test.sh
@@ -36,6 +36,12 @@ pass_test() {
/bin/true;
}
+strip_version_from_result() {
+ VERSION=$(./make_version.sh $1)
+ sed -i "s/${VERSION}/VERSION/" $STDERR_OUT
+ sed -i "s/${VERSION}/VERSION/" $STDOUT_OUT
+}
+
diff_with_result() {
# Explicitly diff a file with an arbitary result file
if [ "$#" -eq 1 ] ; then