moving start-up script from java to bash
This commit is contained in:
parent
f8b3dda209
commit
118cec97c2
|
@ -22,11 +22,16 @@ import static com.rusefi.Timeouts.SECOND;
|
||||||
*/
|
*/
|
||||||
public class RealHwTest {
|
public class RealHwTest {
|
||||||
private static final Logging log = getLogging(RealHwTest.class);
|
private static final Logging log = getLogging(RealHwTest.class);
|
||||||
private static final int STARTUP_SLEEP = 20;
|
public static final String HW_TESTS_START_UP_SLEEP = "hw_tests_start_up_sleep";
|
||||||
|
private static final int STARTUP_SLEEP = Integer.getInteger(HW_TESTS_START_UP_SLEEP, 0);
|
||||||
|
|
||||||
public static void main(String[] args) throws InterruptedException {
|
public static void main(String[] args) throws InterruptedException {
|
||||||
log.info("Sleeping " + STARTUP_SLEEP + " seconds to give OS time to connect VCP driver");
|
if (STARTUP_SLEEP != 0) {
|
||||||
Thread.sleep(STARTUP_SLEEP * SECOND);
|
log.info("Sleeping " + STARTUP_SLEEP + " seconds to give OS time to connect VCP driver");
|
||||||
|
Thread.sleep(STARTUP_SLEEP * SECOND);
|
||||||
|
} else {
|
||||||
|
log.info(HW_TESTS_START_UP_SLEEP + " VM option not specified, no start-up sleep in java code");
|
||||||
|
}
|
||||||
|
|
||||||
boolean isSuccess = runHardwareTest(args);
|
boolean isSuccess = runHardwareTest(args);
|
||||||
if (!isSuccess)
|
if (!isSuccess)
|
||||||
|
|
|
@ -28,6 +28,8 @@ cd java_console
|
||||||
echo "Running tests"
|
echo "Running tests"
|
||||||
which java
|
which java
|
||||||
which javac
|
which javac
|
||||||
|
echo Sleeping few seconds to give OS time to connect VCP driver
|
||||||
|
sleep 20s
|
||||||
ant real_hardware_functional_test
|
ant real_hardware_functional_test
|
||||||
|
|
||||||
[ $? -eq 0 ] || { echo "ERROR DETECTED"; exit 1; }
|
[ $? -eq 0 ] || { echo "ERROR DETECTED"; exit 1; }
|
||||||
|
|
Loading…
Reference in New Issue