expect-lava/tftf*: Add failure clause for "Tests Failed : [^0]"
Avoids hanging tests until timeout for output like:
=================================
Tests Skipped : 94
Tests Passed : 137
Tests Failed : 2
Tests Crashed : 0
Total tests : 233
=================================
NOTICE: Exiting tests.
As seen e.g. in https://tf.validation.linaro.org/scheduler/job/1823880
Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
Change-Id: I7a25f4b76f15767a5ed44f54e7d070731b28540e
diff --git a/expect-lava/disable_dyn_auth_tftf.exp b/expect-lava/disable_dyn_auth_tftf.exp
index 71f29c0..f13c6cb 100644
--- a/expect-lava/disable_dyn_auth_tftf.exp
+++ b/expect-lava/disable_dyn_auth_tftf.exp
@@ -15,7 +15,8 @@
expect_string+=("i;${prompt}")
prompt='Tests Failed : 0'
-expect_string+=("i;${prompt}")
+failures='Unhandled exception on |Tests Failed : [^0]'
+expect_string+=("i;${prompt};;${failures}")
prompt='Exiting tests.'
failures='Tests Passed : 0'
diff --git a/expect-lava/tftf-aarch32.exp b/expect-lava/tftf-aarch32.exp
index df0b752..6157877 100644
--- a/expect-lava/tftf-aarch32.exp
+++ b/expect-lava/tftf-aarch32.exp
@@ -16,7 +16,7 @@
expect_string+=("i;${prompt}")
prompt='Tests Failed : 0'
-failures='Unhandled exception on '
+failures='Unhandled exception on |Tests Failed : [^0]'
expect_string+=("i;${prompt};;${failures}")
prompt='Exiting tests.'
diff --git a/expect-lava/tftf-non-primary.exp b/expect-lava/tftf-non-primary.exp
index 521b43f..f1cd67c 100644
--- a/expect-lava/tftf-non-primary.exp
+++ b/expect-lava/tftf-non-primary.exp
@@ -13,7 +13,7 @@
expect_string+=("i;${prompt}")
prompt='Tests Failed : 0'
-failures='Unhandled exception on '
+failures='Unhandled exception on |Tests Failed : [^0]'
expect_string+=("i;${prompt};;${failures}")
prompt='Exiting tests.'
diff --git a/expect-lava/tftf.exp b/expect-lava/tftf.exp
index f599192..a855030 100644
--- a/expect-lava/tftf.exp
+++ b/expect-lava/tftf.exp
@@ -16,7 +16,7 @@
expect_string+=("i;${prompt}")
prompt='Tests Failed : 0'
-failures='Unhandled exception on '
+failures='Unhandled exception on |Tests Failed : [^0]'
expect_string+=("i;${prompt};;${failures}")
prompt='Exiting tests.'