Просмотр исходного кода

fix(mse): pack 7z fixtures with a portable glob on Linux

Windows `.\\*` created empty archives under /bin/7z, so the sanitizer
kept the original files and the python lane failed.

Co-authored-by: Cursor <cursoragent@cursor.com>
root 3 месяцев назад
Родитель
Сommit
949a9c0100
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      tests/unit/test_package_for_agent_analysis.py

+ 1 - 1
tests/unit/test_package_for_agent_analysis.py

@@ -566,7 +566,7 @@ class PackageForAgentAnalysisTests(unittest.TestCase):
                     write_file(source, relative, data)
                     write_file(source, relative, data)
                 archive = temp / f"{name}.7z"
                 archive = temp / f"{name}.7z"
                 result = subprocess.run(
                 result = subprocess.run(
-                    [str(seven_zip), "a", "-t7z", str(archive), ".\\*"],
+                    [str(seven_zip), "a", "-t7z", "-r", str(archive), "*"],
                     cwd=source,
                     cwd=source,
                     capture_output=True,
                     capture_output=True,
                     text=True,
                     text=True,