1 # needed for access() and remove()
4 # check for required featurest listet in 'filelist' and removes the old .works file of 'testname'
5 def check_files( filelist, testname ):
6 # delete old .works file of the calling test, if it exists
7 filename = "./"+testname+".works"
9 if os.access(filename,os.F_OK):
12 # now check for existint .works files
14 for i in range(0,len(filelist)):
15 tmpname = "./"+filelist[i]+".works"
16 if not os.access(tmpname,os.F_OK):
17 print "(INFO) Skipping '"+testname+"' due to SKIP/FAIL of '"+filelist[i]+"'"
20 # either the filelist is empty (no requirements) or all requirements match
24 # create the .works file for test 'testname'
25 def set_file( testname ):
26 # create .works file of calling test
27 works_file = file("./"+testname+".works", 'w',1)