Return run_checks if no ntuple found to run checks on.
If a job produces no output run_checks will still try to run but find no output to run on so a result
will not be produced by running the ci-check
command and python will throw
[32mINFO:LbAPTestRunner:No ntuple found in /pool/condor/dir_153193/tmp/tmp6xwfe13y/AnalysisProductions/output for job 2011_12267100_MagDown, could not run checks[0m
Traceback (most recent call last):
File "/pool/condor/dir_153193/DIRAC_2g2amg6mpilot/595498073/run_test.py", line 572, in <module>
asyncio.run(parse_args())
File "/cvmfs/lhcbdev.cern.ch/conda/envs/DPA/analysis-productions/2022-02-05_17-15/linux-64/lib/python3.9/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/cvmfs/lhcbdev.cern.ch/conda/envs/DPA/analysis-productions/2022-02-05_17-15/linux-64/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
return future.result()
File "/pool/condor/dir_153193/DIRAC_2g2amg6mpilot/595498073/run_test.py", line 91, in parse_args
await args.func(args)
File "/pool/condor/dir_153193/DIRAC_2g2amg6mpilot/595498073/run_test.py", line 156, in main
checks_returncode = run_checks(test_info, output_dir)
File "/pool/condor/dir_153193/DIRAC_2g2amg6mpilot/595498073/run_test.py", line 211, in run_checks
return result.returncode
UnboundLocalError: local variable 'result' referenced before assignment