From acf7760f4d69756a2e4a8eca33930c72c7aca8f3 Mon Sep 17 00:00:00 2001 From: Thom Wiggers Date: Wed, 19 Feb 2020 11:53:14 -0500 Subject: [PATCH] Fix detecting of to-be-tested changes on Windows --- test/helpers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/helpers.py b/test/helpers.py index 52a587d0..a8b2a27b 100644 --- a/test/helpers.py +++ b/test/helpers.py @@ -245,6 +245,8 @@ def permit_test(testname, *args, **kwargs): assert diff_result.returncode == 0, \ "Got unexpected return code {}".format(diff_result.returncode) for diff_line in diff_result.stdout.decode('utf-8').splitlines(): + # Git still returns UNIX-style paths on Windows, normalize + diff_line = os.path.normpath(diff_line) # don't skip test if there are any changes outside schemes if (not diff_line.startswith('crypto_kem') and not diff_line.startswith('crypto_sign') and