mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 07:17:55 +03:00
run-tests: expand --tmpdir and create it if needed
This commit is contained in:
parent
908bc54270
commit
857382a916
@ -167,6 +167,14 @@ def parseargs():
|
||||
else:
|
||||
vlog = lambda *msg: None
|
||||
|
||||
if options.tmpdir:
|
||||
options.tmpdir = os.path.expanduser(options.tmpdir)
|
||||
try:
|
||||
os.makedirs(options.tmpdir)
|
||||
except OSError, err:
|
||||
if err.errno != errno.EEXIST:
|
||||
raise
|
||||
|
||||
if options.jobs < 1:
|
||||
print >> sys.stderr, 'ERROR: -j/--jobs must be positive'
|
||||
sys.exit(1)
|
||||
|
Loading…
Reference in New Issue
Block a user