фикс ранера на обновление

This commit is contained in:
denzel committed 2026-11-12 02:19:26 -05:00
1 parent 8f7ffe02a2
commit 55fd998ef2
5 files changed
+71 -17

No files matched your search

+7
View File
@@ -27,6 +27,7 @@ with open(os.environ['TEST_LOG'], 'a') as log:
log.write(name + ' ' + ' '.join(args) + '\\n')
failure = os.environ.get('TEST_FAILURE')
if name == 'git':
if failure == 'auth' and args[0] == 'ls-remote': sys.exit(128)
print('a' * 40)
elif name == 'docker':
if args[0] == 'inspect': print('false')
@@ -68,3 +69,9 @@ elif name == 'curl' and failure == 'health':
self.assertIn('docker rm -f oktp-docs\n', calls)
self.assertIn('docker rename oktp-docs-backup-', calls)
self.assertIn('Previous container restored.', result.stderr)
def test_auth_failure_is_not_reported_as_success(self):
result, calls = self.run_deploy('auth')
self.assertNotEqual(result.returncode, 0)
self.assertIn('Cannot read main from Gitea', result.stderr)
self.assertNotIn('docker build', calls)