diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2014-07-10 14:03:37 +0100 |
---|---|---|
committer | Damien Lespiau <damien.lespiau@intel.com> | 2014-07-10 18:05:41 +0100 |
commit | 82e3d3379b7204bd81033c96b6279b537186ed85 (patch) | |
tree | f3a44df195cfa499cbd5b0c975b559cdd9e6c02b /tests/drv_module_reload | |
parent | e16d4a2d68d163da81397ff7f1e00d063f0d700c (diff) |
drv_module_reload: Don't declare success when failing
We weren't returning straight away when failing to unload the driver, so
the test happilly executed gem_suspend and printed ""module successfully
loaded again".
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Diffstat (limited to 'tests/drv_module_reload')
-rwxr-xr-x | tests/drv_module_reload | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/drv_module_reload b/tests/drv_module_reload index c1fd3957..66cd6bbb 100755 --- a/tests/drv_module_reload +++ b/tests/drv_module_reload @@ -33,10 +33,9 @@ rmmod drm &> /dev/null if lsmod | grep i915 &> /dev/null ; then echo WARNING: i915.ko still loaded! - exitcode=1 + exit 1 else echo module successfully unloaded - exitcode=0 fi modprobe i915 @@ -47,4 +46,4 @@ modprobe snd_hda_intel # try to run something $SOURCE_DIR/gem_exec_nop > /dev/null && echo "module successfully loaded again" -exit $exitcode +exit 0 |