Closedown
This commit is contained in:
@@ -1069,20 +1069,21 @@ public class TestingList extends Panel {
|
||||
private void jButtonRunActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonRunActionPerformed
|
||||
if (this.jButtonRun.getToolTipText().equals("Run enabled tests")) {
|
||||
Object pshellStatus;
|
||||
String sWait = "";
|
||||
String sWait = "pshell is initialising: cannot start tests, please try again in a few seconds...";
|
||||
Boolean bWait = false;
|
||||
//check if pshell is still initialising: if so, don't start the tests
|
||||
try {
|
||||
//invoke python method
|
||||
pshellStatus = eval("controller.state");
|
||||
if(String.valueOf(pshellStatus)=="Initializing"){
|
||||
sWait = "pshell is initialising: please try again in a few seconds...";
|
||||
bWait = true;
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
Logger.getLogger(TestingList.class.getName()).log(Level.SEVERE, null, ex);
|
||||
sWait = "pshell is initialising: please try again in a few seconds...";
|
||||
bWait = true;
|
||||
}
|
||||
//pshell is actually initialising: don't start tests
|
||||
if(!sWait.isEmpty()){
|
||||
if(bWait){
|
||||
System.out.println(sWait);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user