fix --notests to actually work

Signed-off-by: Pierre Tardy <pierre.tardy@intel.com>