Changeset 3705


Ignore:
Timestamp:
Aug 16, 2011 8:57:11 AM (13 years ago)
Author:
bennylp
Message:

More re #1264 (automated tests)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.x/tests/automated/run_continuous.py

    r3702 r3705  
    112112 
    113113                if utc.tm_mday != day or rc != 0 or FORCE: 
    114                                 group = "" 
    115                                 if utc.tm_mday != day: 
    116                                         day = utc.tm_mday 
    117                                         group = "Nightly" + SUFFIX 
    118                                 elif rc != 0: 
    119                                         group = "Continuous" + SUFFIX 
    120                                 else: 
    121                                         group = "Experimental" + SUFFIX 
     114                        group = "" 
     115                        if utc.tm_mday != day: 
     116                                day = utc.tm_mday 
     117                                group = "Nightly" + SUFFIX 
     118                        elif rc != 0: 
     119                                group = "Continuous" + SUFFIX 
     120                        else: 
     121                                group = "Experimental" + SUFFIX 
     122                        if DELAY > 0: 
    122123                                print "Will run %s after %f s.." % (group, DELAY) 
    123124                                time.sleep(DELAY) 
    124                                 rc = run_scenarios(scenarios, group) 
    125                                 # Sleep even if something does change 
    126                                 msg = str(datetime.datetime.now()) + \ 
    127                                           ": done running " + group + \ 
    128                                           "tests, will check again in " + str(INTERVAL) + "s.." 
     125                        rc = run_scenarios(scenarios, group) 
     126                        msg = str(datetime.datetime.now()) + \ 
     127                                  ": done running " + group + \ 
     128                                  "tests, will check again in " + str(INTERVAL) + "s.." 
     129                        if ONCE: 
     130                                sys.exit(0) 
    129131                else: 
    130132                        # Nothing changed 
    131133                        msg = str(datetime.datetime.now()) + \ 
    132134                                  ": No update, will check again in " + str(INTERVAL) + "s.." 
    133                          
    134  
    135                 if ONCE: 
    136                         sys.exit(0) 
     135                        if ONCE: 
     136                                sys.exit(1) 
    137137 
    138138                print msg 
Note: See TracChangeset for help on using the changeset viewer.