finishing touches, make test more robust, rename function in last again

This commit is contained in:
Bernhard Amann 2013-05-15 11:33:25 -07:00
parent 80962ad74b
commit ab6d5b08a8
5 changed files with 26 additions and 17 deletions

View file

@ -5,8 +5,8 @@
# @TEST-EXEC: btest-bg-run worker-1 BROPATH=$BROPATH:.. CLUSTER_NODE=worker-1 bro %INPUT
# @TEST-EXEC: btest-bg-run worker-2 BROPATH=$BROPATH:.. CLUSTER_NODE=worker-2 bro %INPUT
# @TEST-EXEC: btest-bg-wait 15
# @TEST-EXEC: btest-diff manager-1/.stdout
# @TEST-EXEC: cat manager-1/.stdout | sort > out
# @TEST-EXEC: btest-diff out
@TEST-START-FILE cluster-layout.bro
redef Cluster::nodes = {
@ -31,7 +31,9 @@ event bro_init() &priority=5
{
print key$host;
local r = rt[key]["test"];
print r$samples;
for ( sample in r$samples ) {
print r$samples[sample];
}
print r$sample_elements;
}