diff options
Diffstat (limited to 'test/143-string-value')
| -rw-r--r--[-rwxr-xr-x] | test/143-string-value/run.py (renamed from test/143-string-value/check) | 17 | ||||
| -rw-r--r-- | test/143-string-value/test-metadata.json | 5 |
2 files changed, 11 insertions, 11 deletions
diff --git a/test/143-string-value/check b/test/143-string-value/run.py index 0691e88c3e..5f32b06fea 100755..100644 --- a/test/143-string-value/check +++ b/test/143-string-value/run.py @@ -1,12 +1,12 @@ #!/bin/bash # -# Copyright (C) 2015 The Android Open Source Project +# Copyright 2022 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 +# http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, @@ -14,14 +14,9 @@ # See the License for the specific language governing permissions and # limitations under the License. -# Inputs: -# $1: Test's expected standard output -# $2: Test's actual standard output -# $3: Test's expected standard error -# $4: Test's actual standard error -# Strip error log messages. -sed -e '/^.*dalvikvm\(\|32\|64\) E.*\] /d' "$4" > "$4.tmp" +def run(ctx, args): + ctx.default_run(args) -diff --strip-trailing-cr -q "$1" "$2" >/dev/null \ - && diff --strip-trailing-cr -q "$3" "$4.tmp" >/dev/null + # Strip error log messages. + ctx.run(fr"sed -i '/^.*dalvikvm\(\|32\|64\) E.*\] /d' '{args.stderr_file}'") diff --git a/test/143-string-value/test-metadata.json b/test/143-string-value/test-metadata.json new file mode 100644 index 0000000000..2d1dd457fd --- /dev/null +++ b/test/143-string-value/test-metadata.json @@ -0,0 +1,5 @@ +{ + "run-param": { + "default-run": true + } +} |