mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-09 17:06:14 +00:00
tests/pm_pc8: try to modprobe i2c-dev
Just in case the module is compiled with M instead of Y. If the module is not there, the other assertions will catch the problem. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
This commit is contained in:
parent
4eb37bf4c1
commit
41267dca3c
@ -875,6 +875,8 @@ static void i2c_subtest_check_environment(void)
|
||||
struct dirent *dirent;
|
||||
|
||||
/* Make sure the /dev/i2c-* files exist. */
|
||||
igt_assert(system("modprobe -q i2c-dev > /dev/null 2>&1") != -1);
|
||||
|
||||
dev_dir = opendir("/dev");
|
||||
igt_assert(dev_dir);
|
||||
while ((dirent = readdir(dev_dir))) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user