Changes in tools/checkers/stanse.py [28f4adb:958de16] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/checkers/stanse.py
r28f4adb r958de16 43 43 def usage(prname): 44 44 "Print usage syntax" 45 print (prname + " <ROOT>")45 print prname + " <ROOT>" 46 46 47 47 def stanse(root, job): … … 54 54 55 55 if (not os.path.isfile(inname)): 56 print ("Unable to open %s" % inname)57 print ("Did you run \"make precheck\" on the source tree?")56 print "Unable to open %s" % inname 57 print "Did you run \"make precheck\" on the source tree?" 58 58 return False 59 59 60 inf = open(inname, "r")60 inf = file(inname, "r") 61 61 records = inf.read().splitlines() 62 62 inf.close() … … 69 69 70 70 if (len(arg) < 6): 71 print ("Not enought jobfile record arguments")71 print "Not enought jobfile record arguments" 72 72 return False 73 73 … … 81 81 srcfqname = os.path.join(base, srcfname) 82 82 if (not os.path.isfile(srcfqname)): 83 print ("Source %s not found" % srcfqname)83 print "Source %s not found" % srcfqname 84 84 return False 85 85 … … 90 90 output.append([srcfname, tgtfname, base, options]) 91 91 92 outf = open(outname, "w")92 outf = file(outname, "w") 93 93 for record in output: 94 94 outf.write("{%s},{%s},{%s},{%s}\n" % (record[0], record[1], record[2], record[3])) … … 121 121 122 122 if (not os.path.isfile(config)): 123 print ("%s not found." % config)124 print ("Please specify the path to HelenOS build tree root as the first argument.")123 print "%s not found." % config 124 print "Please specify the path to HelenOS build tree root as the first argument." 125 125 return 126 126 … … 128 128 if (not stanse(rootdir, job)): 129 129 print 130 print ("Failed job: %s" % job)130 print "Failed job: %s" % job 131 131 return 132 132 133 133 print 134 print ("All jobs passed")134 print "All jobs passed" 135 135 136 136 if __name__ == '__main__':
Note:
See TracChangeset
for help on using the changeset viewer.