Changeset 16570 for trunk


Ignore:
Timestamp:
06/02/13 11:31:51 (11 years ago)
Author:
tbretz
Message:
We have to check for the MCP state, too, to make sure that the state got already propagated and reports so that our stateCheck will be happy
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/scripts/takeRun.js

    r16447 r16570  
    8787
    8888    console.out("   ...waiting for 1s");
     89
     90    // Wait for one second to bridge possible pending connects
    8991    v8.sleep(1000);
     92
    9093    console.out("   ...checking connection");
     94
     95    // Wait for FAD_CONTROL to realize that all boards are connected
     96    // FIXME: Wait for '40' boards being connected instead
    9197    dim.wait("FAD_CONTROL", "Connected", 3000);
     98
     99    // Wait also for MCP to have all boards connected again
     100    dim.wait("MCP", "Idle", 3000);
    92101    console.out("");
    93102}
     
    217226        console.out(" - FTM_CONTROL: "+dim.state("FTM_CONTROL").name);
    218227
    219         dim.wait("MCP",         "Idle", 3000);
    220         dim.wait("FTM_CONTROL", "Idle", 3000);
    221 
    222         // Necessary to allow the disconnect, reconnect
    223         dim.send("FAD_CONTROL/CLOSE_OPEN_FILES");
     228        dim.wait("FTM_CONTROL", "Idle",      3000);
    224229        dim.wait("FAD_CONTROL", "Connected", 3000);
     230        dim.wait("MCP",         "Idle",      3000);
    225231
    226232        var list = [];
Note: See TracChangeset for help on using the changeset viewer.