Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1253)

Unified Diff: third_party/buildbot_7_12/buildbot/test/emitlogs.py

Issue 12207158: Bye bye buildbot 0.7.12. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/buildbot_7_12/buildbot/test/emitlogs.py
diff --git a/third_party/buildbot_7_12/buildbot/test/emitlogs.py b/third_party/buildbot_7_12/buildbot/test/emitlogs.py
deleted file mode 100644
index 143023596d24e41ce859c35456502ae6fa256888..0000000000000000000000000000000000000000
--- a/third_party/buildbot_7_12/buildbot/test/emitlogs.py
+++ /dev/null
@@ -1,42 +0,0 @@
-import sys, time, os.path, StringIO
-
-mode = 0
-if len(sys.argv) > 1:
- mode = int(sys.argv[1])
-
-if mode == 0:
- log2 = open("log2.out", "wt")
- log3 = open("log3.out", "wt")
-elif mode == 1:
- # delete the logfiles first, and wait a moment to exercise a failure path
- if os.path.exists("log2.out"):
- os.unlink("log2.out")
- if os.path.exists("log3.out"):
- os.unlink("log3.out")
- time.sleep(2)
- log2 = open("log2.out", "wt")
- log3 = open("log3.out", "wt")
-elif mode == 2:
- # don't create the logfiles at all
- log2 = StringIO.StringIO()
- log3 = StringIO.StringIO()
-
-def write(i):
- log2.write("this is log2 %d\n" % i)
- log2.flush()
- log3.write("this is log3 %d\n" % i)
- log3.flush()
- sys.stdout.write("this is stdout %d\n" % i)
- sys.stdout.flush()
-
-write(0)
-time.sleep(1)
-write(1)
-sys.stdin.read(1)
-write(2)
-
-log2.close()
-log3.close()
-
-sys.exit(0)
-
« no previous file with comments | « third_party/buildbot_7_12/buildbot/test/emit.py ('k') | third_party/buildbot_7_12/buildbot/test/mail/freshcvs.1 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698