diff options
author | Jani Nikula <jani.nikula@intel.com> | 2016-10-03 17:00:01 +0300 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2016-10-04 09:57:50 +0300 |
commit | 2085e1476e6e9dbe6fe4c67d5aeed26d290f6d54 (patch) | |
tree | afebcbd4c19b6846134e3bf9bbaade3f22a1e26b | |
parent | 8f3cf597e498e147bede782a6d759400092c640e (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>
-rwxr-xr-x | tests/drv_module_reload_basic | 4 |
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 |