• Cédric de Saint Martin's avatar
    testnode: run first found runTestSuite from lowest matching partition, not random one. · d4e43cf4
    Cédric de Saint Martin authored
    glob uses os.listdir, which returns list in arbitrary order.
    Sometimes we have seevral partitions containing bin/runTestSuite. We want to use the one closest to the root instance (i.e alphabetical order, test0-1/bin/runTestSuite is better thantest0-3/bin/runTestSuite).
    
    Usecase: webrunner, for which main instance contains a bin/runTestSuite for unit tests. But resiliency tests (dedicated partition, usually test0-0) also has bin/runTestSuite, and then requests a normal instance of slaprunner (usually test0-3).
    d4e43cf4
UnitTestRunner.py 7.42 KB