diff options
author | Juro Bystricky <juro.bystricky@intel.com> | 2017-10-06 16:30:46 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-10-09 10:09:09 +0100 |
commit | 2f2684984d906e8b6df7865ed813f74484d5c6b4 (patch) | |
tree | 7861c721d2269fe2688058bcea197007b0ff88ea /meta | |
parent | 8f4f3a0dd55adf8fdc6fc6a2701e6d623e8338c9 (diff) | |
download | poky-2f2684984d906e8b6df7865ed813f74484d5c6b4.tar.gz |
e2fsprogs: modify ptest script
e2fsprog testsuite used to log results into its own log file into
/usr/lib/e2fsprogs/ptest/test.log. Therefore console output was not available and
redirecting ptest-runner output into a log file would not capture output of any
individual tests. So overall the whole e2fsprogs testsuite consisting of about
300 tests was evaluated as a single test.
This patch ensures the e2fsprogs test_script output is not automatically redirected
while executing during run-ptest. Any redirection is up to the user.
Additionally, the results of tests are prefixed by more canonical "PASS:" FAIL:"
based on the actual test results.
Aditionally, remove various files created by the testsuite.
[YOCTO #12146]
(From OE-Core rev: a218b85dba1a481901548f7414676c0ae6f43316)
Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-devtools/e2fsprogs/e2fsprogs/run-ptest | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/meta/recipes-devtools/e2fsprogs/e2fsprogs/run-ptest b/meta/recipes-devtools/e2fsprogs/e2fsprogs/run-ptest index e02fc7f2b9..ef10b08bc8 100644 --- a/meta/recipes-devtools/e2fsprogs/e2fsprogs/run-ptest +++ b/meta/recipes-devtools/e2fsprogs/e2fsprogs/run-ptest | |||
@@ -1,11 +1,10 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 2 | ||
3 | cd ./test | 3 | cd ./test |
4 | ./test_script &>../test.log | 4 | ./test_script | sed -u -e '/:[[:space:]]ok/s/^/PASS: /' -e '/:[[:space:]]failed/s/^/FAIL: /' -e '/:[[:space:]]skipped/s/^/SKIP: /' |
5 | if [ $? -eq 0 ] | 5 | rm -rf /var/volatile/tmp/*e2fsprogs* |
6 | then | 6 | rm -f tmp-* |
7 | echo "PASS: e2fsprogs" | 7 | rm -f *.tmp |
8 | rm ../test.log | 8 | rm -f *.ok |
9 | else | 9 | rm -f *.failed |
10 | echo "FAIL: e2fsprogs" | 10 | rm -f *.log |
11 | fi | ||