@@ -272,11 +272,8 @@ async def test_shutdown():
272272 async with get_context (partial_config ) as context :
273273 result = await create_task (context , task_id , task_id )
274274 assert result ['status' ]['state' ] == 'pending'
275- fake_cot_log = os .path .join (context .config ['artifact_dir' ], 'public' , 'logs' , 'chain_of_trust.log' )
276275 fake_other_artifact = os .path .join (context .config ['artifact_dir' ], 'public' , 'artifact.apk' )
277276
278- with open (fake_cot_log , 'w' ) as file :
279- file .write ('CoT logs' )
280277 with open (fake_other_artifact , 'w' ) as file :
281278 file .write ('unrelated artifact' )
282279 cancel_fut = asyncio .ensure_future (do_shutdown (context ))
@@ -289,28 +286,19 @@ async def test_shutdown():
289286 log_url = context .queue .buildUrl (
290287 'getArtifact' , task_id , 0 , 'public/logs/live_backing.log'
291288 )
292- cot_log_url = context .queue .buildUrl (
293- 'getArtifact' , task_id , 0 , 'public/logs/chain_of_trust.log'
294- )
295289 other_artifact_url = context .queue .buildUrl (
296290 'getArtifact' , task_id , 0 , 'public/artifact.apk'
297291 )
298292 log_path = os .path .join (context .config ['work_dir' ], 'log' )
299- cot_log_path = os .path .join (context .config ['work_dir' ], 'cot_log' )
300293 other_artifact_path = os .path .join (context .config ['work_dir' ], 'artifact.apk' )
301294 await utils .download_file (context , log_url , log_path )
302- await utils .download_file (context , cot_log_url , cot_log_path )
303295 with pytest .raises (Download404 ):
304296 await utils .download_file (context , other_artifact_url , other_artifact_path )
305297
306298 with open (log_path ) as fh :
307299 contents = fh .read ()
308300 assert contents .rstrip () == "running task script\n Automation Error: python exited with signal -15"
309301
310- with open (cot_log_path ) as fh :
311- contents = fh .read ()
312- assert contents .rstrip () == "CoT logs"
313-
314302
315303# empty_queue {{{1
316304@pytest .mark .skipif (os .environ .get ("NO_TESTS_OVER_WIRE" ), reason = SKIP_REASON )
0 commit comments