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.mu...@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

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to