river-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sijs...@apache.org
Subject svn commit: r1029805 - in /incubator/river/jtsk/trunk/qa/src/com/sun/jini/qa/harness: HeartOfTheMachine.java QARunner.java
Date Mon, 01 Nov 2010 19:44:50 GMT
Author: sijskes
Date: Mon Nov  1 19:44:50 2010
New Revision: 1029805

URL: http://svn.apache.org/viewvc?rev=1029805&view=rev
Log:
a new heart for our tinman

Modified:
    incubator/river/jtsk/trunk/qa/src/com/sun/jini/qa/harness/HeartOfTheMachine.java
    incubator/river/jtsk/trunk/qa/src/com/sun/jini/qa/harness/QARunner.java

Modified: incubator/river/jtsk/trunk/qa/src/com/sun/jini/qa/harness/HeartOfTheMachine.java
URL: http://svn.apache.org/viewvc/incubator/river/jtsk/trunk/qa/src/com/sun/jini/qa/harness/HeartOfTheMachine.java?rev=1029805&r1=1029804&r2=1029805&view=diff
==============================================================================
--- incubator/river/jtsk/trunk/qa/src/com/sun/jini/qa/harness/HeartOfTheMachine.java (original)
+++ incubator/river/jtsk/trunk/qa/src/com/sun/jini/qa/harness/HeartOfTheMachine.java Mon Nov
 1 19:44:50 2010
@@ -16,7 +16,7 @@ import java.util.concurrent.TimeUnit;
  */
 public class HeartOfTheMachine
 {
-    private static String soulfile = System.getProperty("soul");
+    private static String soul = System.getenv("SOUL");
 
     public HeartOfTheMachine()
     {
@@ -24,7 +24,7 @@ public class HeartOfTheMachine
 
     private boolean hasReasonToLive()
     {
-        File f = new File(soulfile);
+        File f = new File(soul);
         return f.exists();
     }
 
@@ -32,7 +32,7 @@ public class HeartOfTheMachine
     {
         try {
             while( hasReasonToLive() ) {
-                Thread.sleep( TimeUnit.SECONDS.toMillis(30) );
+                Thread.sleep( TimeUnit.SECONDS.toMillis(10) );
             }
             Runtime.getRuntime().halt(999);
         } catch( InterruptedException e ) {
@@ -43,10 +43,10 @@ public class HeartOfTheMachine
 
     public static void start()
     {
-        if( soulfile == null ) {
+        if( soul == null ) {
             return ;
         }
-        
+
         Thread t = new Thread( new Runnable() {
 
             public void run()

Modified: incubator/river/jtsk/trunk/qa/src/com/sun/jini/qa/harness/QARunner.java
URL: http://svn.apache.org/viewvc/incubator/river/jtsk/trunk/qa/src/com/sun/jini/qa/harness/QARunner.java?rev=1029805&r1=1029804&r2=1029805&view=diff
==============================================================================
--- incubator/river/jtsk/trunk/qa/src/com/sun/jini/qa/harness/QARunner.java (original)
+++ incubator/river/jtsk/trunk/qa/src/com/sun/jini/qa/harness/QARunner.java Mon Nov  1 19:44:50
2010
@@ -59,6 +59,9 @@ public abstract class QARunner {
 		}
             }
         );
+
+        HeartOfTheMachine.start();
+
 //	String hostList = System.getProperty("com.sun.jini.qa.harness.testhosts");
 	if (isMasterHost(hostList)) {
 	    boolean allPass = (new MasterHarness(args)).runTests();



Mime
View raw message