Fix including trailing empty line as pointer name
ci/woodpecker/push/build Pipeline failed Details
ci/woodpecker/push/release Pipeline was successful Details

This commit is contained in:
Olivier 'reivilibre' 2022-11-20 22:11:05 +00:00
parent 7e41408815
commit 50ff9bb36a
1 changed files with 5 additions and 3 deletions

View File

@ -331,11 +331,13 @@ kind = {{ stdout = "blahblah.txt" }}
time.sleep(2) time.sleep(2)
subprocess.check_call(("datman", "backup-one", "srca", "main"), cwd=datman_path) subprocess.check_call(("datman", "backup-one", "srca", "main"), cwd=datman_path)
pointer_names = ( pointer_names = [
subprocess.check_output(("yama", "debug", "lsp"), cwd=yama_path) line
for line in subprocess.check_output(("yama", "debug", "lsp"), cwd=yama_path)
.decode() .decode()
.split("\n") .split("\n")
) if line
]
self.assertEqual(len(pointer_names), 3) self.assertEqual(len(pointer_names), 3)
self.assertLess(pointer_names[0], pointer_names[1]) self.assertLess(pointer_names[0], pointer_names[1])
self.assertLess(pointer_names[1], pointer_names[2]) self.assertLess(pointer_names[1], pointer_names[2])