forked from expo/troggle
made test for cavern more robust against legs v shots
This commit is contained in:
@@ -275,7 +275,7 @@ class SubprocessTest(TestCase):
|
|||||||
self.assertTrue(sp.returncode == 0, f"{cwd} - survex is unhappy")
|
self.assertTrue(sp.returncode == 0, f"{cwd} - survex is unhappy")
|
||||||
|
|
||||||
content = sp.stdout
|
content = sp.stdout
|
||||||
ph = r"Total length of survey legs"
|
ph = r"Total plan length of survey"
|
||||||
phmatch = re.search(ph, content)
|
phmatch = re.search(ph, content)
|
||||||
msg = f'{cwd} - Failed to find expected survex output: "{ph}"'
|
msg = f'{cwd} - Failed to find expected survex output: "{ph}"'
|
||||||
self.assertIsNotNone(phmatch, msg)
|
self.assertIsNotNone(phmatch, msg)
|
||||||
|
|||||||
Reference in New Issue
Block a user