- Timestamp:
- Aug 16, 2011 8:27:38 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/tests/automated/run_continuous.py
r3703 r3704 112 112 113 113 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: 122 123 print "Will run %s after %f s.." % (group, DELAY) 123 124 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) 129 131 else: 130 132 # Nothing changed 131 133 msg = str(datetime.datetime.now()) + \ 132 134 ": 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) 137 137 138 138 print msg
Note: See TracChangeset
for help on using the changeset viewer.