Bug 1450839 - Allow running generate-wrappers from any cwd. - r=kvark
authorJeff Gilbert <jgilbert@mozilla.com>
Mon, 09 Apr 2018 14:19:50 -0700
changeset 468447 ac281f70ecf2effbc31b4031d6ebf15358cde06d
parent 468446 0ebe2410e617f8d549f6c77ddefcb2badd6d30bc
child 468448 3a7d5640c5c4738cc7794a39960030957472ac09
push id9165
push userasasaki@mozilla.com
push dateThu, 26 Apr 2018 21:04:54 +0000
treeherdermozilla-beta@064c3804de2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskvark
bugs1450839
milestone61.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1450839 - Allow running generate-wrappers from any cwd. - r=kvark MozReview-Commit-ID: JGpNmE9OQdC
dom/canvas/test/webgl-conf/generate-wrappers-and-manifest.py
--- a/dom/canvas/test/webgl-conf/generate-wrappers-and-manifest.py
+++ b/dom/canvas/test/webgl-conf/generate-wrappers-and-manifest.py
@@ -526,18 +526,17 @@ def GetFilePathListForDir(baseDir):
             filePath = filePath.replace(os.sep, '/')
             ret.append(filePath)
 
     return ret
 
 
 if __name__ == '__main__':
     file_dir = Path(__file__).parent
-    cwd = Path.cwd()
-    assert cwd.samefile(file_dir), 'Run this file from its directory.'
+    os.chdir(file_dir)
 
     testEntryList = GetTestList()
     wrapperPathStrList = WriteWrappers(testEntryList)
 
     supportPathStrList = GetSupportFileList()
     WriteManifest(wrapperPathStrList, supportPathStrList)
 
     print('Done!')