From: Joel E. Denny Date: Sat, 12 Oct 2019 16:00:25 +0000 (+0000) Subject: Revert r374657: "[lit] Try again to fix new tests that fail on Windows bots" X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4822201348a1150d621a5f517d991219c5b95af1;p=llvm Revert r374657: "[lit] Try again to fix new tests that fail on Windows bots" git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374664 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/lit/lit/builtin_commands/diff.py b/utils/lit/lit/builtin_commands/diff.py index 338a01474ac..f413f87425c 100644 --- a/utils/lit/lit/builtin_commands/diff.py +++ b/utils/lit/lit/builtin_commands/diff.py @@ -62,7 +62,6 @@ def compareTwoBinaryFiles(flags, filepaths, filelines): func = difflib.context_diff diffs = func(filelines[0], filelines[1], filepaths[0], filepaths[1], n = flags.num_context_lines) - diffs = [diff.decode(errors="ignore") for diff in diffs] for diff in diffs: sys.stdout.write(diff) diff --git a/utils/lit/tests/shtest-shell.py b/utils/lit/tests/shtest-shell.py index fb290f52b5f..9a6f2aac0a4 100644 --- a/utils/lit/tests/shtest-shell.py +++ b/utils/lit/tests/shtest-shell.py @@ -48,7 +48,7 @@ # CHECK-NEXT: @@ # CHECK-NEXT: {{^ .f.o.o.$}} # CHECK-NEXT: {{^-.b.a.r.$}} -# CHECK-NEXT: {{^\+.b.a.r.}} +# CHECK-NEXT: {{^\+.b.a.r..}} # CHECK-NEXT: {{^ .b.a.z.$}} # CHECK: error: command failed with exit status: 1 # CHECK: $ "true" @@ -62,7 +62,7 @@ # CHECK-NEXT: -bar # CHECK-NEXT: -baz # CHECK-NEXT: {{^\+.f.o.o.$}} -# CHECK-NEXT: {{^\+.b.a.r.}} +# CHECK-NEXT: {{^\+.b.a.r..}} # CHECK-NEXT: {{^\+.b.a.z.$}} # CHECK: error: command failed with exit status: 1 # CHECK: $ "true" @@ -73,7 +73,7 @@ # CHECK-NEXT: +++ # CHECK-NEXT: @@ # CHECK-NEXT: {{^\-.f.o.o.$}} -# CHECK-NEXT: {{^\-.b.a.r.}} +# CHECK-NEXT: {{^\-.b.a.r..}} # CHECK-NEXT: {{^\-.b.a.z.$}} # CHECK-NEXT: +foo # CHECK-NEXT: +bar @@ -100,7 +100,7 @@ # CHECK-NEXT: @@ # CHECK-NEXT: {{^ .f.o.o.$}} # CHECK-NEXT: {{^-.b.a.r.$}} -# CHECK-NEXT: {{^\+.b.a.r.}} +# CHECK-NEXT: {{^\+.b.a.r..}} # CHECK-NEXT: {{^ .b.a.z.$}} # CHECK: error: command failed with exit status: 1 # CHECK: $ "true" @@ -116,7 +116,7 @@ # CHECK-NEXT: -bar # CHECK-NEXT: -baz # CHECK-NEXT: {{^\+.f.o.o.$}} -# CHECK-NEXT: {{^\+.b.a.r.}} +# CHECK-NEXT: {{^\+.b.a.r..}} # CHECK-NEXT: {{^\+.b.a.z.$}} # CHECK: error: command failed with exit status: 1 # CHECK: $ "true" @@ -127,7 +127,7 @@ # CHECK-NEXT: +++ # CHECK-NEXT: @@ # CHECK-NEXT: {{^\-.f.o.o.$}} -# CHECK-NEXT: {{^\-.b.a.r.}} +# CHECK-NEXT: {{^\-.b.a.r..}} # CHECK-NEXT: {{^\-.b.a.z.$}} # CHECK-NEXT: +foo # CHECK-NEXT: +bar