Skip to content

Commit 844f904

Browse files
committed
pyln-testing: catch special CI string so we can have non-BROKEN CI warnings.
Signed-off-by: Rusty Russell <[email protected]>
1 parent fcd92fe commit 844f904

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
@@ -609,7 +609,7 @@ def checkBadGossip(node):
609609

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

0 commit comments

Comments
 (0)