mirror of
https://github.com/intel/llvm.git
synced 2026-01-19 17:45:07 +08:00
Modify test_image_search_paths(self) to check for the pattern "%s-[^-]*-[^-]*" % self.getArchitecture()
from the output of running 'image list -t 3' command which lists the triples of the image list. llvm-svn: 130777
This commit is contained in:
@@ -49,8 +49,11 @@ class LoadUnloadTestCase(TestBase):
|
||||
|
||||
exe = os.path.join(os.getcwd(), "a.out")
|
||||
self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
|
||||
print "Architecture to test for:", self.getArchitecture()
|
||||
self.expect("image list",
|
||||
substrs = [old_dylib])
|
||||
self.expect("image list -t 3",
|
||||
patterns = ["%s-[^-]*-[^-]*" % self.getArchitecture()])
|
||||
self.runCmd("target image-search-paths add %s %s" % (os.getcwd(), new_dir))
|
||||
# Add teardown hook to clear image-search-paths after the test.
|
||||
self.addTearDownHook(lambda: self.runCmd("target image-search-paths clear"))
|
||||
|
||||
Reference in New Issue
Block a user