From: Ian Jackson <ian.jackson@eu.citrix.com>
To: xen-devel@lists.xenproject.org
Cc: Ian Jackson <ian.jackson@eu.citrix.com>,
Ian Campbell <ian.campbell@citrix.com>
Subject: [OSSTEST PATCH 2/2] ts-host-install: New --poweron-test-only option
Date: Fri, 15 May 2015 18:14:30 +0100 [thread overview]
Message-ID: <1431710070-11766-2-git-send-email-ian.jackson@eu.citrix.com> (raw)
In-Reply-To: <1431710070-11766-1-git-send-email-ian.jackson@eu.citrix.com>
We are having a difficulty with one of the test boxes, which can be
most easily reproduced by running ts-host-install to power cycle the
box and then see if it wakes up enough to fetch a preseed file.
Keep this mode of operation in tree in case it's useful in future.
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
ts-host-install | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/ts-host-install b/ts-host-install
index dfee932..69de4b6 100755
--- a/ts-host-install
+++ b/ts-host-install
@@ -27,6 +27,7 @@ use Osstest::Logtailer;
tsreadconfig();
my $debconf_priority;
+my $poweron_test_only;
our %xopts;
@@ -35,6 +36,8 @@ while (@ARGV and $ARGV[0] =~ m/^-/) {
last if m/^--$/;
if (m/^--priority(?:=(.*))?$/) {
$xopts{DebconfPriority}= defined($1) ? $1 : 'low';
+ } elsif (m/^--poweron-test-only$/) {
+ $poweron_test_only= 1;
} elsif (m/^--rescue$/) {
$xopts{RescueMode}= 1;
}
@@ -71,6 +74,13 @@ END
await_webspace_fetch_byleaf(get_timeout($ho,'reboot',$timeout{ReadPreseed})
, 1,
$logtailer, $ho, $ps_url);
+
+ if ($poweron_test_only) {
+ logm("Hooray, power on worked.");
+ power_state($ho, 0);
+ exit 0;
+ }
+
setup_pxeboot_local($ho);
await_tcp(get_timeout($ho,'reboot',$timeout{Sshd}), 14,$ho);
--
1.7.10.4
next prev parent reply other threads:[~2015-05-15 17:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-15 17:14 [OSSTEST PATCH 1/2] ts-host-install: Fix indentation error Ian Jackson
2015-05-15 17:14 ` Ian Jackson [this message]
2015-05-18 9:06 ` [OSSTEST PATCH 2/2] ts-host-install: New --poweron-test-only option Ian Campbell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1431710070-11766-2-git-send-email-ian.jackson@eu.citrix.com \
--to=ian.jackson@eu.citrix.com \
--cc=ian.campbell@citrix.com \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).