miscell cosmetic + pass the substrate object to TestBonding so it can compute an...
[tests.git] / qaapi / qa / tests / vserver_create.py
1 #!/usr/bin/python
2 import os,sys
3 from Test import Test
4 from qa import utils
5
6 class vserver_create(Test):
7     """
8     Create a vsever given the specified name, reference,
9     mailto options. Installs the specified myplc distro.
10     """
11
12     def call(self, name, fcdistro, mailto):
13         
14
15         if self.config.verbose:
16             utils.header("Creating vserver: %(name)s" % locals(), logfile = self.config.logfile) 
17         # Create vserver
18         vcreate_script = self.config.vserver_scripts_path + 'vtest-nightly.sh'
19         command = "%(vcreate_script)s -b %(name)s -f %(fcdistro)s -m %(mailto)s -w /tmp/" % locals()
20         (status, output) = utils.commands(command, logfile = self.config.logfile)
21
22         # Start vserver
23         command = "vserver %(name)s start" % locals()
24         (status, output) = utils.commands(command, logfile = self.config.logfile)       
25
26         return 1