diff mbox series

external/test: make stripping out version number more robust

Message ID 20171213041908.18973-1-stewart@linux.vnet.ibm.com
State Accepted
Headers show
Series external/test: make stripping out version number more robust | expand

Commit Message

Stewart Smith Dec. 13, 2017, 4:19 a.m. UTC
For some bizarre reason, Travis started failing on this
substitution when there'd been zero code changes in this
area... This at least papers over whatever the problem is
for the time being.

Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
---
 external/test/test.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Stewart Smith Dec. 13, 2017, 4:21 a.m. UTC | #1
Stewart Smith <stewart@linux.vnet.ibm.com> writes:
> For some bizarre reason, Travis started failing on this
> substitution when there'd been zero code changes in this
> area... This at least papers over whatever the problem is
> for the time being.
>
> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
> ---
>  external/test/test.sh | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

and merged to master and 5.9.x to shut Travis-CI up.
diff mbox series

Patch

diff --git a/external/test/test.sh b/external/test/test.sh
index c3bbc61c197d..05951aeaa794 100755
--- a/external/test/test.sh
+++ b/external/test/test.sh
@@ -36,8 +36,8 @@  pass_test() {
 
 strip_version_from_result() {
 	VERSION=$(./make_version.sh $1)
-	sed -i "s/${VERSION}/VERSION/" $STDERR_OUT
-	sed -i "s/${VERSION}/VERSION/" $STDOUT_OUT
+	sed -i "s/${VERSION}/VERSION/;s/^Open-Power \(.*\) tool v.*/Open-Power \\1 tool VERSION/" $STDERR_OUT
+	sed -i "s/${VERSION}/VERSION/;s/^Open-Power \(.*\) tool v.*/Open-Power \\1 tool VERSION/" $STDOUT_OUT
 }
 
 diff_with_result() {