diff options
author | Benny Prijono <bennylp@teluu.com> | 2011-08-16 08:57:11 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2011-08-16 08:57:11 +0000 |
commit | 519fd6761d716a7276cc74511b54ba579a7726b0 (patch) | |
tree | 7519676d43f159afacf5d902f334ef2d557f8972 /tests/automated/run_continuous.py | |
parent | b7762bf185605d323b1204cd83d52e4e4a461636 (diff) |
More re #1264 (automated tests)
git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/1.x@3705 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'tests/automated/run_continuous.py')
-rwxr-xr-x | tests/automated/run_continuous.py | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/tests/automated/run_continuous.py b/tests/automated/run_continuous.py index efa245fb..07e45abc 100755 --- a/tests/automated/run_continuous.py +++ b/tests/automated/run_continuous.py @@ -111,29 +111,29 @@ if __name__ == "__main__": utc = time.gmtime(None) if utc.tm_mday != day or rc != 0 or FORCE: - group = "" - if utc.tm_mday != day: - day = utc.tm_mday - group = "Nightly" + SUFFIX - elif rc != 0: - group = "Continuous" + SUFFIX - else: - group = "Experimental" + SUFFIX + group = "" + if utc.tm_mday != day: + day = utc.tm_mday + group = "Nightly" + SUFFIX + elif rc != 0: + group = "Continuous" + SUFFIX + else: + group = "Experimental" + SUFFIX + if DELAY > 0: print "Will run %s after %f s.." % (group, DELAY) time.sleep(DELAY) - rc = run_scenarios(scenarios, group) - # Sleep even if something does change - msg = str(datetime.datetime.now()) + \ - ": done running " + group + \ - "tests, will check again in " + str(INTERVAL) + "s.." + rc = run_scenarios(scenarios, group) + msg = str(datetime.datetime.now()) + \ + ": done running " + group + \ + "tests, will check again in " + str(INTERVAL) + "s.." + if ONCE: + sys.exit(0) else: # Nothing changed msg = str(datetime.datetime.now()) + \ ": No update, will check again in " + str(INTERVAL) + "s.." - - - if ONCE: - sys.exit(0) + if ONCE: + sys.exit(1) print msg time.sleep(INTERVAL) |