projects
/
irspy-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
End test early if the Explain database is unavailable.
[irspy-moved-to-github.git]
/
lib
/
ZOOM
/
IRSpy
/
Test
/
Search
/
Explain.pm
diff --git
a/lib/ZOOM/IRSpy/Test/Search/Explain.pm
b/lib/ZOOM/IRSpy/Test/Search/Explain.pm
index
964ea10
..
fb3433b
100644
(file)
--- a/
lib/ZOOM/IRSpy/Test/Search/Explain.pm
+++ b/
lib/ZOOM/IRSpy/Test/Search/Explain.pm
@@
-1,4
+1,4
@@
-# $Id: Explain.pm,v 1.2 2006-10-25 13:38:10 sondberg Exp $
+# $Id: Explain.pm,v 1.5 2007-02-26 18:48:50 mike Exp $
# See the "Main" test package for documentation
# See the "Main" test package for documentation
@@
-22,10
+22,10
@@
sub start {
Processing VariantSetInfo UnitSet);
foreach my $category (@explain) {
Processing VariantSetInfo UnitSet);
foreach my $category (@explain) {
- $conn->option('databaseName', 'IR-Explain-1');
$conn->irspy_search_pqf('@attr exp-1 1=1 ' . $category,
$conn->irspy_search_pqf('@attr exp-1 1=1 ' . $category,
- {'category' => $category}, {},
- ZOOM::Event::RECV_SEARCH, \&found,
+ {'category' => $category},
+ { databaseName => 'IR-Explain-1' },
+ ZOOM::Event::ZEND, \&found,
exception => \&error);
}
}
exception => \&error);
}
}
@@
-56,6
+56,9
@@
sub error {
$conn->log("irspy_test", "Explain category lookup failed: ", $exception);
update($conn, $category, 0);
$conn->log("irspy_test", "Explain category lookup failed: ", $exception);
update($conn, $category, 0);
+ return ZOOM::IRSpy::Status::TEST_BAD
+ if $exception->code() == 109; # Database unavailable
+
return ZOOM::IRSpy::Status::TASK_DONE;
}
return ZOOM::IRSpy::Status::TASK_DONE;
}