Index: slowwwww.py |
diff --git a/slowwwww.py b/slowwwww.py |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5054fff4889822f9c0963b25c88ea8fadf3430ec |
--- /dev/null |
+++ b/slowwwww.py |
@@ -0,0 +1,25 @@ |
+import time |
+import sys |
+import logging |
+ |
+FORMAT='%(asctime)s - %(process)s - %(name)s - %(levelname)s - %(message)s' |
+logging.basicConfig( |
+ level=logging.DEBUG, format=FORMAT, stream=sys.stdout) |
+ |
+if '--spawn' in sys.argv: |
+ logging.warn('tan: spwaning') |
+ sys.stdout.flush() |
+ import subprocess |
+ subprocess.call( |
+ ['python', '/usr/local/google/home/tandrii/bin/depot_tools/slowwwww.py'], |
+ stderr=subprocess.PIPE) |
+ logging.warn('tan: finished!') |
+ sys.stdout.flush() |
+else: |
+ logging.info('tan: sleeping') |
+ sys.stdout.flush() |
+ for i in xrange(6): |
+ time.sleep(3) |
+ logging.debug('tan: sleep partial %d', i) |
+ logging.info('tan: sleeping no more.') |
+ sys.stdout.flush() |