mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-10 01:00:29 +03:00
deploy build logs: no timestamps
This commit is contained in:
parent
f30983368c
commit
2c87b5e6f9
3 changed files with 8 additions and 15 deletions
|
|
@ -971,7 +971,7 @@ class CommonTest(unittest.TestCase):
|
|||
cmd[6],
|
||||
'example.com:/var/www/fdroid/repo/'],
|
||||
cmd)
|
||||
self.assertTrue(cmd[6].endswith('/com.example.app_4711_1.log.gz'))
|
||||
self.assertTrue(cmd[6].endswith('/com.example.app_4711.log.gz'))
|
||||
with gzip.open(cmd[6], 'r') as f:
|
||||
self.assertTrue(f.read(), mocklogcontent)
|
||||
elif assert_subprocess_call_iteration == 1:
|
||||
|
|
@ -984,7 +984,7 @@ class CommonTest(unittest.TestCase):
|
|||
cmd[6],
|
||||
'example.com:/var/www/fbot/repo/'],
|
||||
cmd)
|
||||
self.assertTrue(cmd[6].endswith('/com.example.app_4711_1.log.gz'))
|
||||
self.assertTrue(cmd[6].endswith('/com.example.app_4711.log.gz'))
|
||||
with gzip.open(cmd[6], 'r') as f:
|
||||
self.assertTrue(f.read(), mocklogcontent)
|
||||
else:
|
||||
|
|
@ -996,7 +996,7 @@ class CommonTest(unittest.TestCase):
|
|||
with mock.patch('subprocess.call',
|
||||
side_effect=assert_subprocess_call):
|
||||
fdroidserver.common.deploy_build_log_with_rsync(
|
||||
'com.example.app', '4711', mocklogcontent, 1.1)
|
||||
'com.example.app', '4711', mocklogcontent)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue