@@ -264,11 +264,8 @@ async def test_shutdown():
264264 async with get_context (partial_config ) as context :
265265 result = await create_task (context , task_id , task_id )
266266 assert result ['status' ]['state' ] == 'pending'
267- fake_cot_log = os .path .join (context .config ['artifact_dir' ], 'public' , 'logs' , 'chain_of_trust.log' )
268267 fake_other_artifact = os .path .join (context .config ['artifact_dir' ], 'public' , 'artifact.apk' )
269268
270- with open (fake_cot_log , 'w' ) as file :
271- file .write ('CoT logs' )
272269 with open (fake_other_artifact , 'w' ) as file :
273270 file .write ('unrelated artifact' )
274271 cancel_fut = asyncio .ensure_future (do_shutdown (context ))
@@ -281,28 +278,19 @@ async def test_shutdown():
281278 log_url = context .queue .buildUrl (
282279 'getArtifact' , task_id , 0 , 'public/logs/live_backing.log'
283280 )
284- cot_log_url = context .queue .buildUrl (
285- 'getArtifact' , task_id , 0 , 'public/logs/chain_of_trust.log'
286- )
287281 other_artifact_url = context .queue .buildUrl (
288282 'getArtifact' , task_id , 0 , 'public/artifact.apk'
289283 )
290284 log_path = os .path .join (context .config ['work_dir' ], 'log' )
291- cot_log_path = os .path .join (context .config ['work_dir' ], 'cot_log' )
292285 other_artifact_path = os .path .join (context .config ['work_dir' ], 'artifact.apk' )
293286 await utils .download_file (context , log_url , log_path )
294- await utils .download_file (context , cot_log_url , cot_log_path )
295287 with pytest .raises (Download404 ):
296288 await utils .download_file (context , other_artifact_url , other_artifact_path )
297289
298290 with open (log_path ) as fh :
299291 contents = fh .read ()
300292 assert contents .rstrip () == "running task script\n Automation Error: python exited with signal -15"
301293
302- with open (cot_log_path ) as fh :
303- contents = fh .read ()
304- assert contents .rstrip () == "CoT logs"
305-
306294
307295# empty_queue {{{1
308296@pytest .mark .skipif (os .environ .get ("NO_TESTS_OVER_WIRE" ), reason = SKIP_REASON )
0 commit comments