summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-04-23 13:52:19 +0200
committerGünther Deschner <gd@samba.org>2010-04-23 13:52:19 +0200
commit6beec1a04df635c9c8539e4837cc783e76b3c562 (patch)
tree4cfec1a1ea413d1572d9b994815276d9b8884da9 /source4/torture/rpc
parent14bb3f71aa3a2c23c5a0396deae4af9ab1e3ac5d (diff)
downloadsamba-6beec1a04df635c9c8539e4837cc783e76b3c562.tar.gz
samba-6beec1a04df635c9c8539e4837cc783e76b3c562.tar.bz2
samba-6beec1a04df635c9c8539e4837cc783e76b3c562.zip
s4-smbtorture: skip tests when no local driver directory is around.
Guenther
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r--source4/torture/rpc/spoolss.c4
1 files changed, 4 insertions, 0 deletions
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");