Skip to content

Commit

Permalink
run-lkp: run arbitrary job script
Browse files Browse the repository at this point in the history
Signed-off-by: Fengguang Wu <[email protected]>
Signed-off-by: Philip Li <[email protected]>
  • Loading branch information
Fengguang Wu authored and rli9 committed Nov 10, 2017
1 parent 3675b39 commit 2958a6c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion bin/run-lkp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,14 @@ mount_cgroup

echo run-job $job
set_job_state 'running'
job_script=${job%.yaml}.sh

if [ ${job%.yaml} != $job ]; then
job_script=${job%.yaml}.sh
else
job_script=$job
chmod +x $job
fi

if [ -x "$job_script" ]; then
$LKP_DEBUG_PREFIX $job_script run_job
last_state_file=$RESULT_ROOT/last_state
Expand Down

0 comments on commit 2958a6c

Please sign in to comment.