Commit e50a5ff
committed
check: call _unload_module() after fallback_device_cleanup()
As described in the commit message of the previous commit,
_unload_module() is called before calling cleanup_fallback_device().
Then, modules that is not cleaned up can be unloaded by _unload_module()
and can cause unload failures.
To avoid the failures, move _unload_module() call into
_check_and_call_test_device() so that it is called after the
cleanup_fallback_device() call. After this change, the call chain
becomes as follows:
_run_test
_check_and_call_test_device
fallback_device
_call_test
cleanup_fallback_device
_unload_modules
This change requires to add _unload_modules() call to
_check_and_call_test() and _check_and_call_test_device_array() also.
Fixes: 756d18d ("check: call _unload_modules for each test run")
Signed-off-by: Shin'ichiro Kawasaki <[email protected]>1 parent be499dd commit e50a5ff
1 file changed
Lines changed: 5 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
417 | 417 | | |
418 | 418 | | |
419 | 419 | | |
420 | | - | |
| 420 | + | |
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
| |||
537 | 537 | | |
538 | 538 | | |
539 | 539 | | |
540 | | - | |
541 | | - | |
542 | | - | |
543 | | - | |
544 | | - | |
545 | | - | |
546 | | - | |
547 | | - | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | 540 | | |
552 | 541 | | |
553 | 542 | | |
| |||
711 | 700 | | |
712 | 701 | | |
713 | 702 | | |
| 703 | + | |
714 | 704 | | |
715 | 705 | | |
716 | 706 | | |
| |||
771 | 761 | | |
772 | 762 | | |
773 | 763 | | |
| 764 | + | |
| 765 | + | |
774 | 766 | | |
775 | 767 | | |
776 | 768 | | |
| |||
842 | 834 | | |
843 | 835 | | |
844 | 836 | | |
| 837 | + | |
845 | 838 | | |
846 | 839 | | |
847 | 840 | | |
| |||
0 commit comments