From bd64b0b1a5b30e87371db264e833ba7e9e243d4b Mon Sep 17 00:00:00 2001 From: Ma XinJian Date: Wed, 23 Oct 2019 13:04:24 +0800 Subject: [PATCH] lib/tests/phoronix-test-suite.sh: fixup aom-av1 fix the following issue: sed: -e expression #1, char 16: unterminated `s' command Signed-off-by: Ma XinJian Signed-off-by: Philip Li --- lib/tests/phoronix-test-suite.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/tests/phoronix-test-suite.sh b/lib/tests/phoronix-test-suite.sh index e97cf2b8f..d5d66e977 100644 --- a/lib/tests/phoronix-test-suite.sh +++ b/lib/tests/phoronix-test-suite.sh @@ -62,6 +62,15 @@ fixup_npb() sed -i 's/mpiexec -np/mpiexec --allow-run-as-root -np/' "$target" } +# fix issue: sed: -e expression #1, char 16: unterminated `s' command +fixup_aom_av1() +{ + [ -n "$environment_directory" ] || return + local test=$1 + local target=${environment_directory}/pts/${test}/aom-av1 + sed -i "s,sed $'s,sed 's,g" "$target" +} + # start nginx and disable ipv6 fixup_nginx() { @@ -283,6 +292,9 @@ run_test() npb-*) fixup_npb $test || die "failed to fixup test npb" ;; + aom-av1-*) + fixup_aom_av1 $test || die "failed to fixup test aom-av1" + ;; bullet-*) fixup_bullet $test || die "failed to fixup test bullet" ;;