forked from expo/troggle
tidy test fior git clean
This commit is contained in:
parent
b3d9eeecd2
commit
2c36666d41
@ -228,18 +228,18 @@ class SubprocessTest(TestCase):
|
||||
self.assertTrue(sp.returncode == 0, f"{cwd} - git is unhappy")
|
||||
|
||||
content = sp.stdout
|
||||
ph = r"Your branch is up[ -]to[ -]date"
|
||||
ph = r"nothing to commit, working tree clean"
|
||||
phmatch = re.search(ph, content)
|
||||
msg = f'{cwd} - Failed to find expected git output: "{ph}"'
|
||||
self.assertIsNotNone(phmatch, msg)
|
||||
|
||||
ph1 = r"no changes added to commit"
|
||||
phmatch1 = re.search(ph1, content)
|
||||
ph2 = r"nothing to commit"
|
||||
phmatch2 = re.search(ph2, content)
|
||||
phmatch = phmatch1 or phmatch2
|
||||
msg = f'{cwd} - Failed to find expected git output: "{ph1}" or "{ph2}"'
|
||||
self.assertIsNotNone(phmatch, msg)
|
||||
# ph1 = r"no changes added to commit"
|
||||
# phmatch1 = re.search(ph1, content)
|
||||
# ph2 = r"nothing to commit"
|
||||
# phmatch2 = re.search(ph2, content)
|
||||
# phmatch = phmatch1 or phmatch2
|
||||
# msg = f'{cwd} - Failed to find expected git output: "{ph1}" or "{ph2}"'
|
||||
# self.assertIsNotNone(phmatch, msg)
|
||||
|
||||
def test_loser_survex_status(self):
|
||||
"""Expects no failures of survex files"""
|
||||
|
Loading…
Reference in New Issue
Block a user