From 9cadab32624b41f6a398a1b1b3b9f432a3f747b3 Mon Sep 17 00:00:00 2001 From: Ben Fitzpatrick Date: Fri, 1 Jul 2016 14:04:01 +0100 Subject: [PATCH] Hack state dump test which has become flakey... --- tests/restart/08-bad-state-dump.t | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/restart/08-bad-state-dump.t b/tests/restart/08-bad-state-dump.t index e4fae09a8fa..72641e0348d 100644 --- a/tests/restart/08-bad-state-dump.t +++ b/tests/restart/08-bad-state-dump.t @@ -44,6 +44,7 @@ while [[ -e $HOME/.cylc/ports/$SUITE_NAME ]]; do fi sleep 1 done +sleep 5 __SCRIPT__ grep_ok 'state dump file not found:' "$SUITE_RUN_DIR/log/suite/err" #------------------------------------------------------------------------------- @@ -61,6 +62,7 @@ while [[ -e $HOME/.cylc/ports/$SUITE_NAME ]]; do fi sleep 1 done +sleep 5 __SCRIPT__ grep_ok 'ERROR, incomplete suite state dump' "$SUITE_RUN_DIR/log/suite/err" #------------------------------------------------------------------------------- @@ -78,6 +80,7 @@ while [[ -e $HOME/.cylc/ports/$SUITE_NAME ]]; do fi sleep 1 done +sleep 5 __SCRIPT__ grep_ok 'ERROR, incomplete suite state dump' "$SUITE_RUN_DIR/log/suite/err" #------------------------------------------------------------------------------- @@ -95,6 +98,7 @@ while [[ -e $HOME/.cylc/ports/$SUITE_NAME ]]; do fi sleep 1 done +sleep 5 __SCRIPT__ grep_ok 'Suite shutting down.*ERROR' "$SUITE_RUN_DIR/log/suite/log" grep_ok 'ERROR: unknown task state for' "$SUITE_RUN_DIR/log/suite/err" @@ -113,6 +117,7 @@ while [[ -e $HOME/.cylc/ports/$SUITE_NAME ]]; do fi sleep 1 done +sleep 5 __SCRIPT__ grep_ok 'Suite shutting down.*ERROR' "$SUITE_RUN_DIR/log/suite/log" grep_ok 'ERROR: corrupted state dump' "$SUITE_RUN_DIR/log/suite/err" @@ -131,6 +136,7 @@ while [[ -e $HOME/.cylc/ports/$SUITE_NAME ]]; do fi sleep 1 done +sleep 5 __SCRIPT__ grep_ok 'Suite shutting down.*ERROR' "$SUITE_RUN_DIR/log/suite/log" grep_ok 'ERROR: corrupted state dump' "$SUITE_RUN_DIR/log/suite/err"