Bug 1272141 - Make web-platform-tests-create mach command create intermediate directories; r=jgraham

MozReview-Commit-ID: 5kd68NQTwXy

--HG--
extra : rebase_source : 47f68d11f51973d6492d52a4536f59d57d18447b
This commit is contained in:
Dan Minor 2016-05-11 17:17:47 -04:00
Родитель 2f411e49ff
Коммит a4dfe739fb
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -205,6 +205,10 @@ testing/web-platform/tests for tests that may be shared
template += self.template_body_reftest_wait
else:
template += self.template_body_th
try:
os.makedirs(os.path.dirname(path))
except OSError:
pass
with open(path, "w") as f:
f.write(template)