Skip to content

Commit

Permalink
- remove verbose flag
Browse files Browse the repository at this point in the history
- try to prevent any actual tests from running during benchmark
  • Loading branch information
DisposaBoy committed Jul 8, 2012
1 parent eabbb68 commit 51bb958
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gstest.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,20 @@ def run(self):
s = 'Run %ss Only' % k
ents.append(s)
if k == 'Benchmark':
args[s] = '-test.bench=%s.*' % k
args[s] = '-test.run=none -test.bench=%s.*' % k
else:
args[s] = '-test.run=%s.*' % k

for k in names:
ents.append(k)
if k.startswith('Benchmark'):
args[k] = '-test.bench=^%s$' % k
args[k] = '-test.run=none -test.bench=^%s$' % k
else:
args[k] = '-test.run=^%s$' % k

def cb(i):
if i >= 0:
s = 'go test -test.v %s' % args.get(ents[i], '')
s = 'go test %s' % args.get(ents[i], '')
win.run_command('gs_shell', {'run': s})

win.show_quick_panel(ents, cb)
Expand Down

0 comments on commit 51bb958

Please sign in to comment.