Closedown

This commit is contained in:
boccioli_m
2016-01-20 09:16:20 +01:00
parent 0ad66aea6e
commit 063d241e12
2 changed files with 6 additions and 5 deletions

View File

@@ -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;
}