From e455057f2fe19dd27ee1b03083454eceb07d3043 Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Tue, 9 Jun 2009 16:37:52 -0700 Subject: Update tests to reflect suppression of store data in logging --- tests/server/backend-t.in | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'tests/server') diff --git a/tests/server/backend-t.in b/tests/server/backend-t.in index 773a002..0c6ac60 100644 --- a/tests/server/backend-t.in +++ b/tests/server/backend-t.in @@ -3,7 +3,8 @@ # Tests for the wallet-backend dispatch code. # # Written by Russ Allbery -# Copyright 2006, 2007, 2008 Board of Trustees, Leland Stanford Jr. University +# Copyright 2006, 2007, 2008, 2009 +# Board of Trustees, Leland Stanford Jr. University # # See LICENSE for licensing terms. @@ -338,7 +339,11 @@ for my $command (qw/autocreate create destroy setacl setattr store/) { is ($out, "$new\n$method type name$extra\n", ' and ran the right method'); ($out, $err) = run_backend ($command, 'error', 'name', @extra); - $ran = "$command error name" . (@extra ? " @extra" : ''); + if ($command eq 'store') { + $ran = "$command error name"; + } else { + $ran = "$command error name" . (@extra ? " @extra" : ''); + } is ($err, "error count $error\n", "Command $command ran with errors"); is ($OUTPUT, "command $ran from admin (1.2.3.4) failed: error count" . " $error\n", ' and syslog correct'); -- cgit v1.2.3