From 308c1fde6d80cbb34146040f2ea4c8e5d955df44 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Thu, 27 Apr 2023 16:47:17 -0300 Subject: [PATCH] [Tests] Ignore blank lines when comparing texts --- tests/utils/context.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/utils/context.py b/tests/utils/context.py index 7ce70338..3c1e7585 100644 --- a/tests/utils/context.py +++ b/tests/utils/context.py @@ -574,7 +574,7 @@ class TestContext(object): def compare_txt(self, text, reference=None, diff='diff.txt'): if reference is None: reference = text - cmd = ['/bin/sh', '-c', 'diff -ub '+os.path.join(REF_DIR, reference)+' ' + + cmd = ['/bin/sh', '-c', 'diff -uBb '+os.path.join(REF_DIR, reference)+' ' + self.get_out_path(text)+' > '+self.get_out_path(diff)] logging.debug('Comparing texts with: '+usable_cmd(cmd)) res = subprocess.call(cmd)