mirror of
https://github.com/nasa/openmct.git
synced 2025-06-11 20:01:41 +00:00
[Test] Ignore missing suites
Ignore bundles for which no test suites have been defined. Used to support development of framework layer (don't stall the test runner just because some bundle does not have defined tests yet), WTD-518.
This commit is contained in:
@ -50,7 +50,12 @@
|
|||||||
xhr.open("GET", file);
|
xhr.open("GET", file);
|
||||||
xhr.onreadystatechange = function () {
|
xhr.onreadystatechange = function () {
|
||||||
if (xhr.readyState === 4) { // DONE
|
if (xhr.readyState === 4) { // DONE
|
||||||
callback(JSON.parse(xhr.response));
|
if (xhr.status === 200) {
|
||||||
|
callback(JSON.parse(xhr.response));
|
||||||
|
} else {
|
||||||
|
// No suite defined, so no tests
|
||||||
|
callback([]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
xhr.send();
|
xhr.send();
|
||||||
|
Reference in New Issue
Block a user