external/test: make stripping out version number more robust
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.
@@ -40,8 +40,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() {
