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

Unified Diff: tools/archive_crash.py

Issue 920673002: Archive more debug builds for manual inspection of binary differences (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix path of binary Created 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/archive_crash.py
diff --git a/tools/archive_crash.py b/tools/archive_crash.py
index 5da173c01de8f33d95b45872123d3e4d750fe0b6..ef08b3437917174826c41b1acc70049dce9de784 100755
--- a/tools/archive_crash.py
+++ b/tools/archive_crash.py
@@ -17,6 +17,8 @@ import tarfile
import utils
import uuid
+from glob import glob
+
GCS_FOLDER = 'dart-temp-crash-archive'
GSUTIL='/b/build/scripts/slave/gsutil'
@@ -35,12 +37,22 @@ 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']
+ print pwd
+ if not 'vm-' in pwd:
+ return
+ if 'win' in pwd or 'release' in pwd:
+ return
+ files = glob('%s/out/Debug*/dart' % pwd)
+ files.extend(glob('%s/xcodebuild/Debug*/dart' % pwd))
+ print('Archiving: %s' % files)
+ for f in files:
+ CopyToGCS(f)
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
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698