s4-smbtorture: skip tests when no local driver directory is around.
authorGünther Deschner <gd@samba.org>
Fri, 23 Apr 2010 11:52:19 +0000 (13:52 +0200)
committerGünther Deschner <gd@samba.org>
Fri, 23 Apr 2010 11:52:19 +0000 (13:52 +0200)
Guenther

source4/torture/rpc/spoolss.c

index 81b63e90c5235fb08836a8cb8a10c4a293944827..3cf1a93d88ee271b596ee329379eca2524eda986 100644 (file)
@@ -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");