diff options
author | Arkadiusz Hiler <arkadiusz.hiler@intel.com> | 2020-05-04 10:37:05 +0300 |
---|---|---|
committer | Arkadiusz Hiler <arkadiusz.hiler@intel.com> | 2020-05-05 09:46:39 +0300 |
commit | 1175d802189072457764642d4dc0111d0603d0cf (patch) | |
tree | 46b23f238d9cca083d4f759c5e9ffccd08a852df /tests/core_hotunplug.c | |
parent | d9b69b3e0f0e48e55a3a0b5af36fc11e92f75f30 (diff) |
lib: Support multiple filters
This patch brings back support for multiple filters that was in the
original series by Zbyszek.
We can now take multiple, semicolon separated filters. Right now the
tests are using only the first filter.
v2: drop unnecessary check before for-loop (Petri)
Cc: Petri Latvala <petri.latvala@intel.com>
Cc: Zbigniew KempczyĆski <zbigniew.kempczynski@intel.com>
Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to 'tests/core_hotunplug.c')
-rw-r--r-- | tests/core_hotunplug.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/core_hotunplug.c b/tests/core_hotunplug.c index f9cfc8c3..ded53fd5 100644 --- a/tests/core_hotunplug.c +++ b/tests/core_hotunplug.c @@ -167,7 +167,8 @@ static void set_filter_from_device(int fd) strncat(path, "/device", PATH_MAX - strlen(path)); igt_assert(realpath(path, dst)); - igt_device_filter_set(filter); + igt_device_filter_free_all(); + igt_device_filter_add(filter); } /* Subtests */ |