Browse Source

Intermediate changes

robot-piglet 1 year ago
parent
commit
e01b97234a
1 changed files with 5 additions and 0 deletions
  1. 5 0
      library/python/testing/yatest_lib/external.py

+ 5 - 0
library/python/testing/yatest_lib/external.py

@@ -97,6 +97,10 @@ class CanonicalObject(dict):
         raise TypeError("Iterating canonical object is not implemented")
 
 
+def canonical_path(path):
+    return path.replace('\\', '/')
+
+
 class ExternalDataInfo(object):
 
     def __init__(self, data):
@@ -178,6 +182,7 @@ class ExternalDataInfo(object):
             attrs["diff_tool_timeout"] = diff_tool_timeout
         if size is not None:
             attrs["size"] = size
+        path = canonical_path(path)
         return cls._serialize(ExternalSchema.File, path, checksum, attrs=attrs)
 
     @classmethod