9 print "Command line arguments :"
10 print "--create (-C): creates full regression test db schema"
11 print "--drop (-D): drops full regression test db schema."
12 print "--add (-A): -r [release] -a [arch] -p [path]: adds a reference release into db."
13 print "--erase (-E): -r [release] -a [arch]: remove a reference release from db."
14 print "--list (-L): lists the available reference releases"
15 print "--create_res: creates results db schema"
16 print "--drop_res: drops results db schema."
17 print "--create_ref: creates reference db schema"
18 print "--drop_ref: drops reference db schema."
21 opts, args = getopt.getopt(sys.argv[1:],
"CDAELRr:a:p:h", [
'create',
'drop',
'add',
'erase',
'list',
'read',
'create_res',
'drop_res',
'create_ref',
'drop_ref',
'help'])
22 except getopt.GetoptError, err:
41 if o
in (
"--create",
"-C"):
44 elif o
in (
"--drop",
"-D"):
47 elif o
in (
"--add",
"-A" ):
49 elif o
in (
"--erase",
"-E" ):
51 elif o
in (
"--list",
"-L" ):
59 elif o ==
"--create_ref":
61 elif o ==
"--create_res":
63 elif o ==
"--drop_ref":
65 elif o ==
"--drop_res":
67 elif o
in (
"--help",
"-h"):
71 assert False,
"unhandled option"
90 if(aflag ==
True and mainOption ==
False):
92 if( RELEASE ==
None ):
93 print "-r parameter has not been specified."
95 print "-a parameter has not been specified."
97 print "-p parameter has not been specified."
98 refDb.addRelease(RELEASE, ARCH, PATH)
99 if(eflag ==
True and mainOption ==
False):
101 if( RELEASE ==
None ):
102 print "-r parameter has not been specified."
104 print "-a parameter has not been specified."
105 refDb.deleteRelease(RELEASE, ARCH)
106 if(lflag ==
True and mainOption ==
False ):