diff options
| author | Cyril Bur <cyril.bur@au1.ibm.com> | 2015-11-11 15:40:01 +1100 |
|---|---|---|
| committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-11-16 13:08:12 +1100 |
| commit | fc8a7e30dd27360514ea145d19bcc6a5820a6e3f (patch) | |
| tree | 61886e7c037129e2fc09ddb8fe9129180aa90154 /external/test | |
| parent | 6d4f10a3b6a313874162122dace948f8465323da (diff) | |
| download | talos-skiboot-fc8a7e30dd27360514ea145d19bcc6a5820a6e3f.tar.gz talos-skiboot-fc8a7e30dd27360514ea145d19bcc6a5820a6e3f.zip | |
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>
Diffstat (limited to 'external/test')
| -rwxr-xr-x | external/test/test.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/external/test/test.sh b/external/test/test.sh index 50406330..cfea7865 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 |

