Index: tools/archive_crash.py |
diff --git a/tools/archive_crash.py b/tools/archive_crash.py |
index 5da173c01de8f33d95b45872123d3e4d750fe0b6..f98c2d20ec5bbe96728b42c87cd110028dc88c77 100755 |
--- a/tools/archive_crash.py |
+++ b/tools/archive_crash.py |
@@ -35,12 +35,17 @@ def CopyToGCS(filename): |
print 'Dump now available in %s' % archived_filename |
def TEMPArchiveBuild(): |
- d = '/b/build/slave/vm-linux-debug-x64-asan-be/build/dart/out/DebugX64/dart' |
- CopyToGCS(d) |
+ if not 'PWD' in os.environ: |
+ return |
+ pwd = os.environ['PWD'] |
+ if not 'vm-' in pwd: |
+ return |
+ if 'win' in pwd or 'release' in pwd: |
+ return |
+ CopyToGCS('%s/out/DebugX64/dart' % pwd) |
ricow1
2015/02/12 06:54:59
fixing this, clearly wrong
|
def Main(): |
- if 'PWD' in os.environ and 'x64-asan' in os.environ['PWD']: |
- TEMPArchiveBuild() |
+ TEMPArchiveBuild() |
if utils.GuessOS() != 'linux': |
print 'Currently only archiving crash dumps on linux' |
return 0 |