]> xenbits.xensource.com Git - people/dariof/osstest.git/commitdiff
TestSupport: Suppress prompting by apt
authorIan Jackson <ian.jackson@eu.citrix.com>
Mon, 10 Feb 2014 16:38:57 +0000 (16:38 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 12 Feb 2014 14:22:47 +0000 (14:22 +0000)
Always set DEBIAN_PRIORITY=critical UCF_FORCE_CONFFOLD=y in
environment of apt, to suppress some prompts.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Osstest/TestSupport.pm

index e546dc9182ab94ce0e77f830dfab87fd31737607..545095f647fdbef759f68f54cdc7522385afe2dd 100644 (file)
@@ -420,7 +420,7 @@ sub target_putfile_root ($$$$;$) {
 sub target_run_apt {
     my ($ho, $timeout, @aptopts) = @_;
     target_cmd_root($ho,
-                    "apt-get @aptopts",
+   "DEBIAN_PRIORITY=critical UCF_FORCE_CONFFOLD=y apt-get @aptopts",
                     $timeout);
 }
 sub target_install_packages {