mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-10-21 15:18:19 +00:00
test(provisioning): avoid aborting the isolated script suite
This commit is contained in:
@@ -12,7 +12,7 @@ use XCAT::Test::Sandbox qw(sandbox_root sandbox_run);
|
||||
|
||||
plan skip_all => 'postscript targets Linux nodes' unless $^O eq 'linux';
|
||||
my $postscripts = repo_path('xCAT/postscripts');
|
||||
BAIL_OUT('enablekdump and xcatlib.sh are required')
|
||||
die('enablekdump and xcatlib.sh are required')
|
||||
unless -r "$postscripts/enablekdump" && -r "$postscripts/xcatlib.sh";
|
||||
|
||||
sub run_enablekdump {
|
||||
|
||||
@@ -12,9 +12,9 @@ use XCAT::Test::Sandbox qw(sandbox_root sandbox_run);
|
||||
use XCAT::Test::Template qw(template_database set_row render_template);
|
||||
|
||||
plan skip_all => 'disk selection requires Linux namespaces' unless $^O eq 'linux';
|
||||
BAIL_OUT('run as root to create isolated dummy block devices') if $>;
|
||||
die('run as root to create isolated dummy block devices') if $>;
|
||||
my $script = repo_path('xCAT-server/share/xcat/install/scripts/getinstdisk');
|
||||
BAIL_OUT("missing disk selector: $script") unless -r $script;
|
||||
die("missing disk selector: $script") unless -r $script;
|
||||
my $database;
|
||||
|
||||
sub selects {
|
||||
|
||||
@@ -13,9 +13,9 @@ use XCAT::Test::Sandbox qw(sandbox_root sandbox_run);
|
||||
|
||||
plan skip_all => 'postscript targets Linux nodes' unless $^O eq 'linux';
|
||||
my $postscripts = repo_path('xCAT/postscripts');
|
||||
BAIL_OUT('sudoer and xcatlib.sh are required') unless -r "$postscripts/sudoer" && -r "$postscripts/xcatlib.sh";
|
||||
die('sudoer and xcatlib.sh are required') unless -r "$postscripts/sudoer" && -r "$postscripts/xcatlib.sh";
|
||||
my $visudo = -x '/usr/sbin/visudo' ? '/usr/sbin/visudo' : '/sbin/visudo';
|
||||
BAIL_OUT('install sudo for the native visudo parser') unless -x $visudo;
|
||||
die('install sudo for the native visudo parser') unless -x $visudo;
|
||||
|
||||
sub field_reply {
|
||||
my ($field) = @_;
|
||||
|
||||
Reference in New Issue
Block a user