2 import sys
, os
, textwrap
4 from autotest_lib
.client
.common_lib
import control_data
7 print "Usage %s <control file>" % os
.path
.basename(sys
.argv
[0])
10 if not os
.path
.exists(sys
.argv
[1]):
11 print "File %s does not exist" % sys
.argv
[1]
15 cd
= control_data
.parse_control(sys
.argv
[1], True)
17 print "This control file does not adhear to the spec set forth in"
18 print "http://autotest.kernel.org/wiki/ControlRequirements"
20 print "Specific error:"
21 print '\n'.join(textwrap
.wrap(str(e
), initial_indent
=' ',
22 subsequent_indent
=' '))
26 print textwrap
.wrap("WARNING: This file is marked experimental. It will "
27 "not show up on the autotest frontend unless "
28 "experimental is set to False.")
31 print "Control file looks good!"