Skip to content

Commit

Permalink
lib/tests/phoronix-test-suite.sh: fix test npb
Browse files Browse the repository at this point in the history
add --allow-run-as-root option to npb

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 d1132c4 commit 78cbfbd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/tests/phoronix-test-suite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ fixup_lammps()
sed -i 's/mpirun -np/mpirun --allow-run-as-root -np/' "$target"
}

# add --allow-run-as-root to npb
fixup_npb()
{
[[ -n "$environment_directory" ]] || return
local target=${environment_directory}/pts/npb-1.2.4/npb
sed -i 's/mpiexec -np/mpiexec --allow-run-as-root -np/' "$target"
}

run_test()
{
local test=$1
Expand All @@ -46,6 +54,9 @@ run_test()
lammps-1.0.1)
fixup_lammps
;;
npb-1.2.4)
fixup_npb
;;
open-porous-media-1.3.1)
fixup_open_porous_media
;;
Expand Down

0 comments on commit 78cbfbd

Please sign in to comment.