From cc1388a78ab36bf579029bf05df552c2ff346709 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Tue, 25 Jun 2019 16:06:13 +0200 Subject: [PATCH] Upgrade littlecheck to allow whitespace before comments Necessary for test files that pass fish_indent. --- build_tools/littlecheck.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build_tools/littlecheck.py b/build_tools/littlecheck.py index f6ea365e8..8fe5841dd 100755 --- a/build_tools/littlecheck.py +++ b/build_tools/littlecheck.py @@ -12,13 +12,13 @@ import subprocess import sys # A regex showing how to run the file. -RUN_RE = re.compile(r"#\s*RUN:\s+(.*)\n") +RUN_RE = re.compile(r"\s*#\s*RUN:\s+(.*)\n") # A regex capturing lines that should be checked against stdout. -CHECK_STDOUT_RE = re.compile(r"#\s*CHECK:\s+(.*)\n") +CHECK_STDOUT_RE = re.compile(r"\s*#\s*CHECK:\s+(.*)\n") # A regex capturing lines that should be checked against stderr. -CHECK_STDERR_RE = re.compile(r"#\s*CHECKERR:\s+(.*)\n") +CHECK_STDERR_RE = re.compile(r"\s*#\s*CHECKERR:\s+(.*)\n") class Config(object):