[Compass-ci] [PATCH v8 lkp-tests 1/3] job2sh.rb: define on_state