svn commit: samba r22356 - in branches/SAMBA_4_0: .
source/script/tests
jelmer at samba.org
jelmer at samba.org
Thu Apr 19 01:23:11 GMT 2007
Author: jelmer
Date: 2007-04-19 01:23:09 +0000 (Thu, 19 Apr 2007)
New Revision: 22356
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=22356
Log:
Simple refactoring.
Modified:
branches/SAMBA_4_0/
branches/SAMBA_4_0/source/script/tests/selftest.pl
Changeset:
Property changes on: branches/SAMBA_4_0
___________________________________________________________________
Name: bzr:merge
...skipped...
Modified: branches/SAMBA_4_0/source/script/tests/selftest.pl
===================================================================
--- branches/SAMBA_4_0/source/script/tests/selftest.pl 2007-04-19 01:20:37 UTC (rev 22355)
+++ branches/SAMBA_4_0/source/script/tests/selftest.pl 2007-04-19 01:23:09 UTC (rev 22356)
@@ -672,6 +672,12 @@
delete $running_envs{$envname};
}
+my $msg_ops;
+if ($from_build_farm) {
+ $msg_ops = $buildfarm_msg_ops;
+} else {
+ $msg_ops = $plain_msg_ops;
+}
if ($opt_testenv) {
my $testenv_vars = setup_env("dc");
@@ -708,12 +714,8 @@
my $pcap_file = "$pcap_dir/$shname.cap";
SocketWrapper::setup_pcap($pcap_file) if ($opt_socket_wrapper_pcap);
- my $result;
- if ($from_build_farm) {
- $result = run_test($envname, $name, $cmd, $i, $suitestotal, $buildfarm_msg_ops);
- } else {
- $result = run_test($envname, $name, $cmd, $i, $suitestotal, $plain_msg_ops);
- }
+ my $result = run_test($envname, $name, $cmd, $i, $suitestotal,
+ $msg_ops);
if ($opt_socket_wrapper_pcap and $result and
not $opt_socket_wrapper_keep_pcap) {
@@ -738,7 +740,8 @@
my $duration = ($end-$start);
my $numfailed = $#$suitesfailed+1;
if ($numfailed == 0) {
- my $ok = $statistics->{TESTS_EXPECTED_OK} + $statistics->{TESTS_EXPECTED_FAIL};
+ my $ok = $statistics->{TESTS_EXPECTED_OK} +
+ $statistics->{TESTS_EXPECTED_FAIL};
print "ALL OK ($ok tests in $statistics->{SUITES_OK} testsuites)\n";
} else {
unless ($from_build_farm) {
More information about the samba-cvs
mailing list