diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2014-08-27 08:57:10 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-08-28 15:12:44 +0100 |
commit | 36f6caae93670cc4086ada533e7c319d53433235 (patch) | |
tree | 7d3e28f25164021e66b066b046c211b861449569 /meta/recipes-devtools/quilt | |
parent | cdfc5150862dc3128bd85353f0263213e595778b (diff) | |
download | poky-36f6caae93670cc4086ada533e7c319d53433235.tar.gz |
run-ptest: fix bashism
These script use /bin/sh as the interpreter, but contains bashism:
recipes-devtools/insserv/files/run-ptest
recipes-devtools/quilt/quilt/run-ptest
recipes-devtools/tcltk/tcl/run-ptest
recipes-extended/gawk/gawk-4.1.1/run-ptest
recipes-support/beecrypt/beecrypt/run-ptest
Fixed:
"==" -> "=" (should be -eq when integer)
"&>log" -> ">log 2>&1"
And quilt's test scripts requires bash, add bash to RDEPENDS_quilt-ptest
(From OE-Core rev: 70c6e0b84d3e17807cbea0677df2f0772a284130)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/quilt')
-rw-r--r-- | meta/recipes-devtools/quilt/quilt-0.63.inc | 2 | ||||
-rwxr-xr-x | meta/recipes-devtools/quilt/quilt/run-ptest | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-devtools/quilt/quilt-0.63.inc b/meta/recipes-devtools/quilt/quilt-0.63.inc index f3757859ff..433d6b4089 100644 --- a/meta/recipes-devtools/quilt/quilt-0.63.inc +++ b/meta/recipes-devtools/quilt/quilt-0.63.inc | |||
@@ -55,5 +55,5 @@ do_install_ptest() { | |||
55 | RDEPENDS_${PN}-ptest = "make file sed gawk diffutils findutils ed perl \ | 55 | RDEPENDS_${PN}-ptest = "make file sed gawk diffutils findutils ed perl \ |
56 | perl-module-filehandle perl-module-getopt-std \ | 56 | perl-module-filehandle perl-module-getopt-std \ |
57 | perl-module-posix perl-module-file-temp \ | 57 | perl-module-posix perl-module-file-temp \ |
58 | perl-module-text-parsewords \ | 58 | perl-module-text-parsewords bash \ |
59 | " | 59 | " |
diff --git a/meta/recipes-devtools/quilt/quilt/run-ptest b/meta/recipes-devtools/quilt/quilt/run-ptest index 1ea0dae128..958a9df5b6 100755 --- a/meta/recipes-devtools/quilt/quilt/run-ptest +++ b/meta/recipes-devtools/quilt/quilt/run-ptest | |||
@@ -1,5 +1,5 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 2 | ||
3 | ln -sf /bin/ed /usr/bin/ed | 3 | ln -sf /bin/ed /usr/bin/ed |
4 | for i in `ls test/*.test |awk -F. '{print $1}' |awk -F/ '{print $2}'`; do make check-$i; if [ $? == 0 ]; then echo PASS: $i.test; else echo FAIL: $i.test; fi; done | 4 | for i in `ls test/*.test |awk -F. '{print $1}' |awk -F/ '{print $2}'`; do make check-$i; if [ $? -eq 0 ]; then echo PASS: $i.test; else echo FAIL: $i.test; fi; done |
5 | rm -f /usr/bin/ed | 5 | rm -f /usr/bin/ed |