Update adaptor.py

handle the case when no test job was triggered