summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2016-10-03 17:00:01 +0300
committerJani Nikula <jani.nikula@intel.com>2016-10-04 09:57:50 +0300
commit2085e1476e6e9dbe6fe4c67d5aeed26d290f6d54 (patch)
treeafebcbd4c19b6846134e3bf9bbaade3f22a1e26b /tests
parent8f3cf597e498e147bede782a6d759400092c640e (diff)
igt/drv_module_reload_basic: let snd_hda_intel removal errors through
Only try removing snd_hda_intel if it's actually loaded, and let the errors through to the logs if removal fails. This is a clue if i915 removal fails later. Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/drv_module_reload_basic4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/drv_module_reload_basic b/tests/drv_module_reload_basic
index 4f317278..a221d65f 100755
--- a/tests/drv_module_reload_basic
+++ b/tests/drv_module_reload_basic
@@ -32,7 +32,9 @@ function reload() {
# The sound driver uses our power well
pkill alsactl
snd_hda_intel_unloaded=0
- rmmod snd_hda_intel &> /dev/null && snd_hda_intel_unloaded=1
+ if mod_loaded snd_hda_intel; then
+ rmmod snd_hda_intel && snd_hda_intel_unloaded=1
+ fi
#ignore errors in ips - gen5 only
rmmod intel_ips &> /dev/null