@@ -230,6 +230,13 @@ hostflag:
identically. The osstest test harness revision is automatically
appended and therefore does not need to be included.
+ reuse-SHARING
+
+ The host may be reused, one job after another. Like share- but
+ only permits one job at a time, and has a much higher limit for
+ the number of successive jobs. ts-host-test-share should be used
+ to arrange for the host's state to be recorded appropriately.
+
equiv-FORMALTOKEN
For each equiv-FORMALTOKEN job flag set on one or more IDENTs, a
@@ -279,6 +279,16 @@ sub compute_hids () {
" $hid->{DefaultSharedMaxTasks}".
" $hid->{DefaultSharedMaxWear}\n";
next;
+ } elsif ($flag =~ m/^reuse-/) {
+ die if exists $hid->{Shared};
+ my $shr= $'; #'
+ $hid->{Shared}= $shr." ".get_harness_rev();
+ $hid->{SharedMaxTasks}= 1;
+ $hid->{SharedMaxWear}= 10;
+ print DEBUG "HID $ident FLAG $flag SHARE-REUSE $shr".
+ " $hid->{SharedMaxTasks}".
+ " $hid->{SharedMaxWear}\n";
+ next;
} elsif ($flag =~ m/^equiv-/) {
my $formalclass= $'; #'
die if exists $hid->{Equiv};
@@ -484,6 +494,11 @@ END
foreach my $kcomb (qw(Shared-Max-Wear Shared-Max-Tasks)) {
my $kdb= $kcomb; $kdb =~ y/-A-Z/ a-z/;
my $khash= $kcomb; $khash =~ y/-//d;
+ if ($hid->{$khash}) {
+ $candrow->{$khash} = $hid->{$khash};
+ print DEBUG "$dbg $khash FROM-HID\n";
+ next;
+ }
$resprop_q->execute($candrow->{restype},$candrow->{resname},$kdb);
my $proprow= $resprop_q->fetchrow_hashref();
my $val= $proprow->{val};