[xharness] Add support for [skip|run]-all-tests labels. (#1208)

This commit is contained in:
Rolf Bjarne Kvinge 2016-11-18 07:11:14 +01:00 коммит произвёл GitHub
Родитель 4c8898f3ee
Коммит db00a33848
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -197,6 +197,12 @@ namespace xharness
} else if (labels.Contains ("run-" + testname + "-tests")) { } else if (labels.Contains ("run-" + testname + "-tests")) {
MainLog.WriteLine ("Enabled '{0}' tests because the label 'run-{0}-tests' is set.", testname); MainLog.WriteLine ("Enabled '{0}' tests because the label 'run-{0}-tests' is set.", testname);
value = true; value = true;
} else if (labels.Contains ("skip-all-tests")) {
MainLog.WriteLine ("Disabled '{0}' tests because the label 'skip-all-tests' is set.", testname);
value = false;
} else if (labels.Contains ("run-all-tests")) {
MainLog.WriteLine ("Enabled '{0}' tests because the label 'run-all-tests' is set.", testname);
value = true;
} }
// respect any default value // respect any default value
} }