@@ -262,11 +262,8 @@ async def test_shutdown():
262262 async with get_context (partial_config ) as context :
263263 result = await create_task (context , task_id , task_id )
264264 assert result ["status" ]["state" ] == "pending"
265- fake_cot_log = os .path .join (context .config ["artifact_dir" ], "public" , "logs" , "chain_of_trust.log" )
266265 fake_other_artifact = os .path .join (context .config ["artifact_dir" ], "public" , "artifact.apk" )
267266
268- with open (fake_cot_log , "w" ) as file :
269- file .write ("CoT logs" )
270267 with open (fake_other_artifact , "w" ) as file :
271268 file .write ("unrelated artifact" )
272269 cancel_fut = asyncio .ensure_future (do_shutdown (context ))
@@ -277,24 +274,17 @@ async def test_shutdown():
277274 assert status ["status" ]["runs" ][0 ]["state" ] == "exception"
278275 assert status ["status" ]["runs" ][0 ]["reasonResolved" ] == "worker-shutdown"
279276 log_url = context .queue .buildUrl ("getArtifact" , task_id , 0 , "public/logs/live_backing.log" )
280- cot_log_url = context .queue .buildUrl ("getArtifact" , task_id , 0 , "public/logs/chain_of_trust.log" )
281277 other_artifact_url = context .queue .buildUrl ("getArtifact" , task_id , 0 , "public/artifact.apk" )
282278 log_path = os .path .join (context .config ["work_dir" ], "log" )
283- cot_log_path = os .path .join (context .config ["work_dir" ], "cot_log" )
284279 other_artifact_path = os .path .join (context .config ["work_dir" ], "artifact.apk" )
285280 await utils .download_file (context , log_url , log_path )
286- await utils .download_file (context , cot_log_url , cot_log_path )
287281 with pytest .raises (Download404 ):
288282 await utils .download_file (context , other_artifact_url , other_artifact_path )
289283
290284 with open (log_path ) as fh :
291285 contents = fh .read ()
292286 assert contents .rstrip () == "running task script\n Automation Error: python exited with signal -15"
293287
294- with open (cot_log_path ) as fh :
295- contents = fh .read ()
296- assert contents .rstrip () == "CoT logs"
297-
298288
299289# empty_queue {{{1
300290@pytest .mark .parametrize ("context_function" , [get_context , get_temp_creds_context ])
0 commit comments