##// END OF EJS Templates
phabricator: unconditionally pop `test_vcr` to fix debugcallconduit...
Ian Moody -
r45806:b1f2659c default
parent child Browse files
Show More
@@ -238,8 +238,9 b' def vcrcommand(name, flags, spec, helpca'
238
238
239 def decorate(fn):
239 def decorate(fn):
240 def inner(*args, **kwargs):
240 def inner(*args, **kwargs):
241 if kwargs.get('test_vcr'):
241 vcr = kwargs.pop('test_vcr')
242 cassette = pycompat.fsdecode(kwargs.pop('test_vcr'))
242 if vcr:
243 cassette = pycompat.fsdecode(vcr)
243 import hgdemandimport
244 import hgdemandimport
244
245
245 with hgdemandimport.deactivated():
246 with hgdemandimport.deactivated():
@@ -24,16 +24,9 b''
24 > EOF
24 > EOF
25 $ VCR="$TESTDIR/phabricator"
25 $ VCR="$TESTDIR/phabricator"
26
26
27 BROKEN: debugcallconduit fails without --test-vcr:
27 debugcallconduit doesn't claim invalid arguments without --test-vcr:
28 $ echo '{}' | HGRCSKIPREPO= hg debugcallconduit 'conduit.ping'
28 $ echo '{}' | HGRCSKIPREPO= hg debugcallconduit 'conduit.ping'
29 hg debugcallconduit: invalid arguments
29 abort: config phabricator.url is required
30 hg debugcallconduit METHOD
31
32 call Conduit API
33
34 options:
35
36 (use 'hg debugcallconduit -h' to show more help)
37 [255]
30 [255]
38
31
39 Error is handled reasonably. We override the phabtoken here so that
32 Error is handled reasonably. We override the phabtoken here so that
General Comments 0
You need to be logged in to leave comments. Login now