зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
2f411e49ff
Коммит
a4dfe739fb
|
@ -205,6 +205,10 @@ testing/web-platform/tests for tests that may be shared
|
||||||
template += self.template_body_reftest_wait
|
template += self.template_body_reftest_wait
|
||||||
else:
|
else:
|
||||||
template += self.template_body_th
|
template += self.template_body_th
|
||||||
|
try:
|
||||||
|
os.makedirs(os.path.dirname(path))
|
||||||
|
except OSError:
|
||||||
|
pass
|
||||||
with open(path, "w") as f:
|
with open(path, "w") as f:
|
||||||
f.write(template)
|
f.write(template)
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче