}
proc spawn-step-begin {flight job ts stepnovar} {
- variable stepcounter 0
+ variable stepcounter
+ if {![info exists stepcounter]} { set stepcounter 0 }
upvar 1 $stepnovar stepno
set stepno [incr stepcounter]
}
use strict qw(vars);
use DBI;
use Osstest;
+use Osstest::TestSupport;
+
+tsreadconfig();
-readconfig();
-opendb_state();
our ($ho,$gho) = ts_get_host_guest(@ARGV);
our ($cfgfile,$cfgstash,$cfg);
use strict qw(vars);
use DBI;
use Osstest;
+use Osstest::TestSupport;
tsreadconfig();
use strict qw(vars);
use DBI;
use Osstest;
+use Osstest::TestSupport;
+
+tsreadconfig();
-readconfig();
-opendb_state();
our ($ho,$gho) = ts_get_host_guest(@ARGV);
sub destroy () {
use strict qw(vars);
use DBI;
use Osstest;
+use Osstest::TestSupport;
our %timeout= qw(Migrate 400);
-readconfig();
-opendb_state();
+tsreadconfig();
our $reps= 1;
use strict qw(vars);
use DBI;
use Osstest;
+use Osstest::TestSupport;
our %timeout= qw(Migrate 400);
-readconfig();
-opendb_state();
+tsreadconfig();
+
our $sho = selecthost($ARGV[0]);
our $dho = selecthost($ARGV[1]);
our $gho = selectguest($ARGV[2],$sho);
use strict qw(vars);
use DBI;
use Osstest;
+use Osstest::TestSupport;
+
+tsreadconfig();
-readconfig();
-opendb_state();
our ($ho,$gho) = ts_get_host_guest(@ARGV);
sub save () {
use strict qw(vars);
use DBI;
use Osstest;
+use Osstest::TestSupport;
+
+tsreadconfig();
-readconfig();
-opendb_state();
our ($ho,$gho) = ts_get_host_guest(@ARGV);
sub start () {
use strict qw(vars);
use DBI;
use Osstest;
+use Osstest::TestSupport;
+
+tsreadconfig();
-readconfig();
-opendb_state();
our ($ho,$gho) = ts_get_host_guest(@ARGV);
sub stop () {
#!/usr/bin/perl -w
-
use strict qw(vars);
use DBI;
use Osstest;
+use Osstest::TestSupport;
-readconfig();
-opendb_state();
+tsreadconfig();
our ($srvhost,$clthost,@gns) = @ARGV;
use strict qw(vars);
use DBI;
use Osstest;
+use Osstest::TestSupport;
-readconfig();
-opendb_state();
+tsreadconfig();
our ($whhost) = @ARGV;
our $ho= selecthost($whhost);
use strict qw(vars);
use DBI;
use Osstest;
+use Osstest::TestSupport;
-readconfig();
-opendb_state();
+tsreadconfig();
my $only;
if (@ARGV && $ARGV[0] =~ m/^--power=([01])$/) {
use strict qw(vars);
use Osstest;
use DBI;
+use Osstest::TestSupport;
-readconfig();
-opendb_state();
+tsreadconfig();
our ($whhost) = @ARGV;
$whhost ||= 'host';
use POSIX;
use JSON;
use IO::Handle;
+use Osstest::TestSupport;
-readconfig();
+tsreadconfig();
opendb_state();
open DEBUG, ">/dev/null" or die $!;
use strict qw(vars);
use DBI;
use Osstest;
+use Osstest::TestSupport;
+
+tsreadconfig();
-readconfig();
-opendb_state();
our ($whhost) = @ARGV;
$whhost ||= 'host';
our $ho= selecthost($whhost);
use strict qw(vars);
use DBI;
use Osstest;
+use Osstest::TestSupport;
-readconfig();
-opendb_state();
+tsreadconfig();
our ($mode, $whhost) = @ARGV;
our $ho= selecthost($whhost);
use DBI;
use IO::File;
use POSIX;
+use Osstest::TestSupport;
-readconfig();
-opendb_state();
+tsreadconfig();
our ($whhost) = @ARGV;
$whhost ||= 'host';
use strict qw(vars);
use DBI;
use Osstest;
+use Osstest::TestSupport;
-readconfig();
-opendb_state();
+tsreadconfig();
our $stage=0;
if (@ARGV && $ARGV[0] =~ m/^--stage(\d+)$/) { $stage=$1; shift @ARGV; }
use strict qw(vars);
use DBI;
use Osstest;
+use Osstest::TestSupport;
+
+tsreadconfig();
-readconfig();
-opendb_state();
my $gn= pop(@ARGV);
our @ho= map { selecthost($_) } @ARGV;
our $gho= selectguest($gn,$ho[0]);
use strict qw(vars);
use DBI;
use Osstest;
+use Osstest::TestSupport;
our %timeout= qw(Migrate 400);
-readconfig();
-opendb_state();
+tsreadconfig();
+
our $sho = selecthost($ARGV[0]);
our $dho = selecthost($ARGV[1]);
our $gho = selectguest($ARGV[2],$sho);
use strict qw(vars);
use DBI;
use Osstest;
+use Osstest::TestSupport;
-readconfig();
-opendb_state();
+tsreadconfig();
our ($whhost) = @ARGV;
$whhost ||= 'host';
use Osstest;
use File::Path;
use POSIX;
+use Osstest::TestSupport;
+
+tsreadconfig();
-readconfig();
-opendb_state();
our ($whhost) = @ARGV;
$whhost ||= 'host';
our $ho= selecthost($whhost);
#!/usr/bin/perl -w
use Osstest;
-readconfig();
+use Osstest::TestSupport;
+
+tsreadconfig();
die if @ARGV && $ARGV[0] =~ m/^-/;
use DBI;
use Osstest;
use POSIX;
+use Osstest::TestSupport;
+
+tsreadconfig();
-readconfig();
-opendb_state();
our ($whhost) = @ARGV;
$whhost ||= 'host';
our $ho= selecthost($whhost);
use Osstest;
use File::Path;
use POSIX;
-use OsstestDebian;
+use Osstest::Debian;
+use Osstest::TestSupport;
my $checkmode= 0;
-readconfig();
-opendb_state();
+tsreadconfig();
our @hos;