[lldb] Fix replaying TestMemoryRead.py from reproducer
authorJonas Devlieghere <jonas@devlieghere.com>
Tue, 13 Apr 2021 04:09:58 +0000 (21:09 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Tue, 13 Apr 2021 04:10:09 +0000 (21:10 -0700)
Remap the external file to the one embedded in the reproducer.

lldb/test/API/functionalities/memory/read/TestMemoryRead.py

index ceea4ab..3efda02 100644 (file)
@@ -150,6 +150,8 @@ class MemoryReadTestCase(TestBase):
         golden_output = res.GetOutput()
 
         memory_read_file = self.getBuildArtifact("memory-read-output")
+        if configuration.is_reproducer_replay():
+            memory_read_file = self.getReproducerRemappedPath(memory_read_file)
 
         def check_file_content(expected):
             with open(memory_read_file) as f: