This commit is contained in:
rusefillc 2023-01-23 12:03:14 -05:00
parent 41f5be5c51
commit 4a816bf708
1 changed files with 10 additions and 7 deletions

View File

@ -23,6 +23,15 @@ import org.junit.runner.Result;
public class RealHardwareTestLauncher {
public static void main(String[] args) {
boolean isOk = runHardwareTest();
if (!isOk)
System.exit(-1);
}
/**
* @return true if test is a SUCCESS, false if a FAILURE
*/
public static boolean runHardwareTest() {
JUnitCore junit = new JUnitCore();
Result result = junit.run(
CommonFunctionalTest.class,
@ -44,12 +53,6 @@ public class RealHardwareTestLauncher {
f.getException().printStackTrace();
});
}
/**
* @return true if test is a SUCCESS, false if a FAILURE
*/
public static boolean runHardwareTest() {
return false;
return result.getRunCount() > 0 && result.getFailureCount() == 0;
}
}