Skip to content

Commit fc8a7e3

Browse files
cyrilbur-ibmstewartsmith
authored andcommitted
external/tests: Add ability to strip version string from result
Signed-off-by: Cyril Bur <[email protected]> Signed-off-by: Stewart Smith <[email protected]>
1 parent 6d4f10a commit fc8a7e3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

external/test/test.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ pass_test() {
3636
/bin/true;
3737
}
3838

39+
strip_version_from_result() {
40+
VERSION=$(./make_version.sh $1)
41+
sed -i "s/${VERSION}/VERSION/" $STDERR_OUT
42+
sed -i "s/${VERSION}/VERSION/" $STDOUT_OUT
43+
}
44+
3945
diff_with_result() {
4046
# Explicitly diff a file with an arbitary result file
4147
if [ "$#" -eq 1 ] ; then

0 commit comments

Comments
 (0)