subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From julianf...@apache.org
Subject svn commit: r1865934 - /subversion/trunk/subversion/tests/cmdline/changelist_tests.py
Date Mon, 26 Aug 2019 12:58:33 GMT
Author: julianfoad
Date: Mon Aug 26 12:58:33 2019
New Revision: 1865934

URL: http://svn.apache.org/viewvc?rev=1865934&view=rev
Log:
Follow-up to r1865929: Restore Windows compatibility in test.

Modified:
    subversion/trunk/subversion/tests/cmdline/changelist_tests.py

Modified: subversion/trunk/subversion/tests/cmdline/changelist_tests.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/changelist_tests.py?rev=1865934&r1=1865933&r2=1865934&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/changelist_tests.py (original)
+++ subversion/trunk/subversion/tests/cmdline/changelist_tests.py Mon Aug 26 12:58:33 2019
@@ -618,8 +618,11 @@ def diff_with_changelists(sbox):
         # reduce even those lines to just the actual path.
         paths = sorted([x[7:].rstrip() for x in output if x[:7] == 'Index: '])
 
-        # And, compare!
         # Diff output on Win32 uses '/' path separators.
+        if sys.platform == 'win32':
+          paths = [x.replace('/', os.sep) for x in paths]
+
+        # And, compare!
         if (paths != expected_paths):
           ### XFAIL case
           if is_repos_wc and (depth == 'empty' or depth == 'files' or depth == 'immediates')
and subdir != '.':



Mime
View raw message