* Have selecthost no longer demand that $job is set; if it is not,
simply do not set Suite (which of course ultimately comes from
runvars and hence the job).
* Add missing use Osstest::TestSupport.
* Mention the need to run it in README.dev.
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Name => $name,
TcpCheckPort => 22,
Info => [],
- Suite => get_runvar_default("${ident}_suite",$job,$c{DebianSuite}),
};
+ if (defined $job) {
+ $ho->{Suite} = get_runvar_default("${ident}_suite",$job,
+ $c{DebianSuite});
+ }
#----- calculation of the host's properties -----
Handles multiple hosts:
$ mg-hosts setprops HOSTA HOSTB -- "PROP" "VALUE"
+$ mg-hosts mkpxedir HOSTA HOSTB
+
Create a flight:
$ FLIGHT=`OSSTEST_CONFIG=production-config ./cs-flight-create commission xen-unstable`
$ echo $FLIGHT
use strict qw(vars refs);
use DBI;
use Osstest;
+use Osstest::TestSupport;
csreadconfig();
system_checked(<<END);
set -e
cd $ho->{Tftp}{Path}$ho->{Tftp}{PxeDir}
- sudo chown root.$ho->{Tftp}{PxeGroup} $macdir
- sudo chmod 2775 $macdir
- sudo rm -f $hn
- sudo ln -s $macdir $hn
+ $sudo chown root.$ho->{Tftp}{PxeGroup} $macdir
+ $sudo chmod 2775 $macdir
+ $sudo rm -f $hn
+ $sudo ln -s $macdir $hn
ls -ald $hn $macdir
END
}