* [OSSTEST PATCH 0/4] Four misc small fixes
@ 2020-05-14 14:19 Ian Jackson
2020-05-14 14:19 ` [OSSTEST PATCH 1/4] Executive: Do not print "shared ... marked ready" when not shared Ian Jackson
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Ian Jackson @ 2020-05-14 14:19 UTC (permalink / raw)
To: xen-devel
Thse four small fixes/improvements have been generated as the result
of my buster work. They are not really related to buster.
Many more changes will follow...
^ permalink raw reply [flat|nested] 5+ messages in thread
* [OSSTEST PATCH 1/4] Executive: Do not print "shared ... marked ready" when not shared
2020-05-14 14:19 [OSSTEST PATCH 0/4] Four misc small fixes Ian Jackson
@ 2020-05-14 14:19 ` Ian Jackson
2020-05-14 14:19 ` [OSSTEST PATCH 2/4] ts-repeat-test: Honour repeat_mult Ian Jackson
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Ian Jackson @ 2020-05-14 14:19 UTC (permalink / raw)
To: xen-devel; +Cc: Ian Jackson
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
Osstest/Executive.pm | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/Osstest/Executive.pm b/Osstest/Executive.pm
index e741f529..c3dc1261 100644
--- a/Osstest/Executive.pm
+++ b/Osstest/Executive.pm
@@ -1017,11 +1017,12 @@ sub executive_resource_shared_mark_ready ($$$) {
my ($restype, $resname, $sharetype) = @_;
# must run outside transaction
+ my $oldshr;
my $what= "resource $restype $resname";
$sharetype .= ' '.get_harness_rev();
db_retry($dbh_tests, [qw(resources)], sub {
- my $oldshr= resource_check_allocated_core($restype, $resname);
+ $oldshr= resource_check_allocated_core($restype, $resname);
if (defined $oldshr) {
die "$what shared $oldshr->{Type} not $sharetype"
unless $oldshr->{Type} eq $sharetype;
@@ -1053,7 +1054,11 @@ END
}) {
logm("post-mark-ready queue daemon prod failed: $@");
}
- logm("$restype $resname shared $sharetype marked ready");
+ if ($oldshr) {
+ logm("$restype $resname shared $sharetype marked ready");
+ } else {
+ logm("$restype $resname (not shared, $sharetype) is ready");
+ }
}
# hostalloc_maxwait_starvation
--
2.20.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [OSSTEST PATCH 2/4] ts-repeat-test: Honour repeat_mult
2020-05-14 14:19 [OSSTEST PATCH 0/4] Four misc small fixes Ian Jackson
2020-05-14 14:19 ` [OSSTEST PATCH 1/4] Executive: Do not print "shared ... marked ready" when not shared Ian Jackson
@ 2020-05-14 14:19 ` Ian Jackson
2020-05-14 14:19 ` [OSSTEST PATCH 3/4] ts-repeat-test: Show total planned repeat count info Ian Jackson
2020-05-14 14:19 ` [OSSTEST PATCH 4/4] TestSupport: honour OSSTEST_PDU_MANUAL override env var Ian Jackson
3 siblings, 0 replies; 5+ messages in thread
From: Ian Jackson @ 2020-05-14 14:19 UTC (permalink / raw)
To: xen-devel; +Cc: Ian Jackson
Nothing automatic uses repeat_mult but this script should definitely
honour it.
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
ts-repeat-test | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/ts-repeat-test b/ts-repeat-test
index 4625add8..e6b52465 100755
--- a/ts-repeat-test
+++ b/ts-repeat-test
@@ -51,6 +51,10 @@ my $dumper = new Data::Dumper [\@cmdis], [qw(*cmdis)];
$dumper->Indent(0);
print $dumper->Dump,"\n";
+my $times = $r{repeat_mult} || 1;
+my $orgreps = $reps;
+$reps *= $times;
+
foreach my $rep (1..$reps) {
logm("========== rep $rep ==========");
foreach my $cmdi (@cmdis) {
--
2.20.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [OSSTEST PATCH 3/4] ts-repeat-test: Show total planned repeat count info
2020-05-14 14:19 [OSSTEST PATCH 0/4] Four misc small fixes Ian Jackson
2020-05-14 14:19 ` [OSSTEST PATCH 1/4] Executive: Do not print "shared ... marked ready" when not shared Ian Jackson
2020-05-14 14:19 ` [OSSTEST PATCH 2/4] ts-repeat-test: Honour repeat_mult Ian Jackson
@ 2020-05-14 14:19 ` Ian Jackson
2020-05-14 14:19 ` [OSSTEST PATCH 4/4] TestSupport: honour OSSTEST_PDU_MANUAL override env var Ian Jackson
3 siblings, 0 replies; 5+ messages in thread
From: Ian Jackson @ 2020-05-14 14:19 UTC (permalink / raw)
To: xen-devel; +Cc: Ian Jackson
Message change only
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
ts-repeat-test | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ts-repeat-test b/ts-repeat-test
index e6b52465..5e17c335 100755
--- a/ts-repeat-test
+++ b/ts-repeat-test
@@ -56,7 +56,7 @@ my $orgreps = $reps;
$reps *= $times;
foreach my $rep (1..$reps) {
- logm("========== rep $rep ==========");
+ logm("========== rep $rep / $reps ($orgreps x $times) ==========");
foreach my $cmdi (@cmdis) {
my $l = $cmdi->{L};
logm("---------- rep $rep @$l ----------");
--
2.20.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [OSSTEST PATCH 4/4] TestSupport: honour OSSTEST_PDU_MANUAL override env var
2020-05-14 14:19 [OSSTEST PATCH 0/4] Four misc small fixes Ian Jackson
` (2 preceding siblings ...)
2020-05-14 14:19 ` [OSSTEST PATCH 3/4] ts-repeat-test: Show total planned repeat count info Ian Jackson
@ 2020-05-14 14:19 ` Ian Jackson
3 siblings, 0 replies; 5+ messages in thread
From: Ian Jackson @ 2020-05-14 14:19 UTC (permalink / raw)
To: xen-devel; +Cc: Ian Jackson
This takes effect on everything that uses selecthost(). The result is
that PDU operations are made manual. This can be useful for testing
etc.
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
Osstest/TestSupport.pm | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm
index 3700a8fe..1e7da676 100644
--- a/Osstest/TestSupport.pm
+++ b/Osstest/TestSupport.pm
@@ -1059,6 +1059,12 @@ sub power_cycle_host_setup ($) {
MethObjs => power_cycle_parse_method($ho, $spec),
};
}
+ if ($ENV{OSSTEST_PDU_MANUAL}) {
+ @approaches = ({
+ Name => 'manual-override',
+ MethObjs => power_cycle_parse_method($ho, 'manual'),
+ });
+ }
$ho->{PowerApproaches} = \@approaches;
}
--
2.20.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-05-14 14:20 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-14 14:19 [OSSTEST PATCH 0/4] Four misc small fixes Ian Jackson
2020-05-14 14:19 ` [OSSTEST PATCH 1/4] Executive: Do not print "shared ... marked ready" when not shared Ian Jackson
2020-05-14 14:19 ` [OSSTEST PATCH 2/4] ts-repeat-test: Honour repeat_mult Ian Jackson
2020-05-14 14:19 ` [OSSTEST PATCH 3/4] ts-repeat-test: Show total planned repeat count info Ian Jackson
2020-05-14 14:19 ` [OSSTEST PATCH 4/4] TestSupport: honour OSSTEST_PDU_MANUAL override env var Ian Jackson
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.