Skip to content

Commit

Permalink
lkp qemu: support output boot message to stdio
Browse files Browse the repository at this point in the history
fix 'set_job_state: command not found'
indent usage option message

Signed-off-by: Zexi Li <[email protected]>
Signed-off-by: Fengguang Wu <[email protected]>
  • Loading branch information
Zexi Li authored and Fengguang Wu committed May 22, 2015
1 parent 930c0aa commit 009bfa4
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions lkp-exec/qemu
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
#!/bin/bash

. $LKP_SRC/lib/bootstrap.sh
. $LKP_SRC/lib/kexec.sh
. $LKP_SRC/lib/qemu.sh
. $LKP_SRC/lib/unit.sh
. $LKP_SRC/lib/job-init.sh

script_name=$(basename $0)

usage()
{
cat <<EOF
Usage: lkp $script_name [-o RESULT_ROOT] [-p VDISK_PATH] [-s SSH_PORT] job.sh
Usage: lkp $script_name [-o RESULT_ROOT] [-p VDISK_PATH] [-s SSH_PORT] [-S] job.sh
options:
-o RESULT_ROOT dir for storing all results
-s SSH_PORT forward ssh port to host
-p VDISK_PATH specify vdisk path
-o RESULT_ROOT dir for storing all results
-s SSH_PORT forward ssh port to host
-p VDISK_PATH specify vdisk path
-S output boot message to stdio
Note:
This script uses qemu to start a VM to run LKP test-job.
Expand Down Expand Up @@ -108,12 +109,13 @@ setup_vdisk_root()
fi
}

while getopts "o:s:" opt
while getopts "o:p:s:S" opt
do
case $opt in
o ) opt_result_root="$OPTARG" ;;
s ) opt_ssh="$OPTARG" ;;
p ) opt_vdiskpath="$OPTARG" ;;
S ) unset DISPLAY ;;
? ) usage ;;
esac
done
Expand Down

0 comments on commit 009bfa4

Please sign in to comment.