summaryrefslogtreecommitdiff
path: root/solenv/qa/python/gbuildtojson.py
diff options
context:
space:
mode:
Diffstat (limited to 'solenv/qa/python/gbuildtojson.py')
-rw-r--r--solenv/qa/python/gbuildtojson.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/solenv/qa/python/gbuildtojson.py b/solenv/qa/python/gbuildtojson.py
index a6ba733d06b6..d8434acc5216 100644
--- a/solenv/qa/python/gbuildtojson.py
+++ b/solenv/qa/python/gbuildtojson.py
@@ -144,7 +144,10 @@ class CheckGbuildToJsonModules(unittest.TestCase):
bashscript.close()
subprocess.check_call([self.bash, bashscriptname.replace('\\', '/')])
os.remove(bashscriptname)
- jsonfiles = os.listdir(os.path.join(self.tempwork, 'GbuildToJson', 'Library'))
+ try:
+ jsonfiles = os.listdir(os.path.join(self.tempwork, 'GbuildToJson', 'Library'))
+ except FileNotFoundError:
+ jsonfiles = []
gbuildlibs = []
for jsonfilename in jsonfiles:
with open(os.path.join(self.tempwork, 'GbuildToJson', 'Library', jsonfilename), 'r') as f: