igt/drv_module_reload_basic: Pass correct inject_load_failure module option

The latest version of the inject_load_failure module option expects the
number of the checkpoint where the failure should be injected, so adjust
the test accordingly.

Signed-off-by: Imre Deak <imre.deak@intel.com>
This commit is contained in:
Imre Deak 2016-03-15 23:13:43 +02:00
parent 431f6c4918
commit f651493a6b

View File

@ -72,10 +72,8 @@ reload || exit $?
finish_load || exit $?
# Repeat the module reload trying to to generate faults
fault=1
for i in $(seq 0 4); do
reload inject_load_failure=$fault
fault=$(($fault * 2))
for i in $(seq 1 4); do
reload inject_load_failure=$i
done
reload || exit $?