[Skiboot] [PATCH v2 07/10] external/tests: Add ability to strip version string from result

Cyril Bur cyril.bur at au1.ibm.com
Wed Nov 11 15:40:01 AEDT 2015


Signed-off-by: Cyril Bur <cyril.bur at au1.ibm.com>
---
 external/test/test.sh | 6 ++++++
 1 file changed, 6 insertions(+)

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
-- 
2.6.2



More information about the Skiboot mailing list