[OE-core] [PATCH 1/2] ptest-runner: Added timeout per tests.

Lucian Musat george.l.musat at intel.com
Wed Jul 22 11:58:45 UTC 2015


Until now if a test hanged it would hang the whole process
indefinitely. I added a timeout so that if one test takes too
long it will kill it and skip to the next one.

Signed-off-by: Lucian Musat <george.l.musat at intel.com>
---
 meta/recipes-support/ptest-runner/files/ptest-runner | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-support/ptest-runner/files/ptest-runner b/meta/recipes-support/ptest-runner/files/ptest-runner
index c618f11..a21102e 100644
--- a/meta/recipes-support/ptest-runner/files/ptest-runner
+++ b/meta/recipes-support/ptest-runner/files/ptest-runner
@@ -15,7 +15,7 @@ do
         date "+%Y-%m-%dT%H:%M"
         echo "BEGIN: $x"
         cd "$x"
-        ./run-ptest || ANYFAILED=yes
+        timeout 10m ./run-ptest || ANYFAILED=yes
         echo "END: $x"
         date "+%Y-%m-%dT%H:%M"
     done
-- 
2.1.4




More information about the Openembedded-core mailing list