{
struct test *t;
+ if (run_deviceless)
+ return;
+
t = zalloc(sizeof(*t));
t->name = safe_strdup(funcname);
t->devname = safe_strdup(dev->shortname);
fnmatch(filter_device, test_name, 0) != 0)
return;
+ if (run_deviceless)
+ return;
+
t = zalloc(sizeof(*t));
t->name = safe_strdup(test_name);
t->devname = safe_strdup("no device");
TCase *tc;
char *sname, *tname;
- /* We run deviceless tests as part of the normal
- * test suite runner, just in case. Filtering
- * all the other ones out just for the case where
- * we can't run the full runner.
- */
- if (run_deviceless && !t->deviceless)
- continue;
-
count = (count + 1) % max;
if (max != 1 && (count % max) != which)
continue;