Skip to content

Commit 5a52c6b

Browse files
committed
pyln-testing: catch special CI string so we can have non-BROKEN CI warnings.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
1 parent 40a44d9 commit 5a52c6b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

common/status_levels.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ enum log_level {
2020
};
2121
#define LOG_LEVEL_MAX LOG_BROKEN
2222

23+
/* Things that can happen in real life, but we don't expect under CI. */
24+
#define CI_UNEXPECTED "That's weird: "
25+
2326
const char *log_level_name(enum log_level level);
2427
bool log_level_parse(const char *levelstr, size_t len,
2528
enum log_level *level);

contrib/pyln-testing/pyln/testing/fixtures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ def checkBadGossip(node):
612612

613613
def checkBroken(node):
614614
node.daemon.logs_catchup()
615-
broken_lines = [l for l in node.daemon.logs if '**BROKEN**' in l]
615+
broken_lines = [l for l in node.daemon.logs if '**BROKEN**' in l or "That's weird: " in l]
616616
if node.broken_log:
617617
ex = re.compile(node.broken_log)
618618
broken_lines = [l for l in broken_lines if not ex.search(l)]

0 commit comments

Comments
 (0)