diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-06-22 16:09:14 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-06-22 16:11:24 +0100 |
commit | 853b4d6098007e05864fdf442f7d8a331aaf51ed (patch) | |
tree | 38506278fcf488a532673627a4aa32482ea155f2 | |
parent | 2ae46218056682a50df5bb200f5490f8e3093362 (diff) |
igt/vgem_reload_basic: Do a modprobe dry-run first
Skip if the vgem module is not present, but still fail if we fail to
load it.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rwxr-xr-x | tests/vgem_reload_basic | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/vgem_reload_basic b/tests/vgem_reload_basic index 5e10303d..e47af2f5 100755 --- a/tests/vgem_reload_basic +++ b/tests/vgem_reload_basic @@ -21,5 +21,7 @@ function unload() { unload &> /dev/null +/sbin/modprobe -q -n vgem || exit $IGT_EXIT_SKIP + /sbin/modprobe vgem $* || exit $IGT_EXIT_FAILURE unload || exit $IGT_EXIT_FAILURE |