[LNT] r210139 - Fixup this test so that it does not try and execute hidden files as databases

Chris Matthews cmatthews5 at apple.com
Tue Jun 3 16:44:40 PDT 2014


Author: cmatthews
Date: Tue Jun  3 18:44:40 2014
New Revision: 210139

URL: http://llvm.org/viewvc/llvm-project?rev=210139&view=rev
Log:
Fixup this test so that it does not try and execute hidden files as databases

Modified:
    lnt/trunk/tests/server/db/Migrations.py

Modified: lnt/trunk/tests/server/db/Migrations.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/tests/server/db/Migrations.py?rev=210139&r1=210138&r2=210139&view=diff
==============================================================================
--- lnt/trunk/tests/server/db/Migrations.py (original)
+++ lnt/trunk/tests/server/db/Migrations.py Tue Jun  3 18:44:40 2014
@@ -7,7 +7,7 @@ import os
 import re
 import shutil
 import sys
-import tempfile
+import glob
 
 import lnt.server.db.migrate
 import lnt.server.ui.app
@@ -73,7 +73,7 @@ def main():
 
     inputs_dir = os.path.join(os.path.dirname(__file__), 'Inputs')
 
-    for item in os.listdir(inputs_dir):
+    for item in glob.glob(inputs_dir + '/*'):
         input_path = os.path.join(inputs_dir, item)
 
         # Ignore non-directories.





More information about the llvm-commits mailing list