From 6beec1a04df635c9c8539e4837cc783e76b3c562 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 23 Apr 2010 13:52:19 +0200 Subject: s4-smbtorture: skip tests when no local driver directory is around. Guenther --- source4/torture/rpc/spoolss.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source4/torture') diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c index 81b63e90c5..3cf1a93d88 100644 --- a/source4/torture/rpc/spoolss.c +++ b/source4/torture/rpc/spoolss.c @@ -7328,6 +7328,10 @@ static bool test_add_driver_arg(struct torture_context *tctx, fillup_printserver_info(tctx, p, d), "failed to fillup printserver info"); + if (!directory_exist(d->local.driver_directory)) { + torture_skip(tctx, "Skipping Printer Driver test as no local driver is available"); + } + torture_assert(tctx, upload_printer_driver(tctx, dcerpc_server_name(p), d), "failed to upload printer driver"); -- cgit