Skip to content

Commit

Permalink
lib/tests/phoronix-test-suite.sh: fix test nginx
Browse files Browse the repository at this point in the history
start nginx and disable ipv6

Signed-off-by: Chen Rong <[email protected]>
Signed-off-by: Philip Li <[email protected]>
  • Loading branch information
xilabao authored and rli9 committed Nov 16, 2017
1 parent 78cbfbd commit 0ad101f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/tests/phoronix-test-suite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,15 @@ fixup_npb()
sed -i 's/mpiexec -np/mpiexec --allow-run-as-root -np/' "$target"
}

# start nginx and disable ipv6
fixup_nginx()
{
[[ -n "$environment_directory" ]] || return
sed -i 's/^::1/#::1/' /etc/hosts
${environment_directory}/pts/nginx-1.1.0/nginx_/sbin/nginx
sleep 5
}

run_test()
{
local test=$1
Expand All @@ -48,6 +57,9 @@ run_test()
# todo: select different test according to testbox's hardware
test_opt="\n1\n2\n3\nn"
;;
nginx-1.1.0)
fixup_nginx
;;
ffmpeg-2.5.0)
fixup_ffmpeg
;;
Expand Down

0 comments on commit 0ad101f

Please sign in to comment.