We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c9a691 commit 2d11421Copy full SHA for 2d11421
tools/test.py
@@ -1562,15 +1562,8 @@ def Main():
1562
for rule in globally_unused_rules:
1563
print "Rule for '%s' was not used." % '/'.join([str(s) for s in rule.path])
1564
1565
- tempdir = os.environ.get('NODE_TEST_DIR') or options.temp_dir
1566
- if tempdir:
1567
- try:
1568
- os.makedirs(tempdir)
1569
- os.environ['NODE_TEST_DIR'] = tempdir
1570
- except OSError as exception:
1571
- if exception.errno != errno.EEXIST:
1572
- print "Could not create the temporary directory", options.temp_dir
1573
- sys.exit(1)
+ if not os.environ.get('NODE_TEST_DIR') and options.temp_dir:
+ os.environ['NODE_TEST_DIR'] = options.temp_dir
1574
1575
if options.report:
1576
PrintReport(all_cases)
0 commit comments