[Xen-devel] [OSSTEST PATCH] installs: Disable cron

Ian Jackson posted 1 patch 1 year, 9 months ago
Failed in applying to current master (apply log)
Osstest/TestSupport.pm | 2 ++
1 file changed, 2 insertions(+)

[Xen-devel] [OSSTEST PATCH] installs: Disable cron

Posted by Ian Jackson 1 year, 9 months ago
The presence of cron causes leak check failures, since cron may run
processes that the leak checker detects.  Disable it, since none of
our installs live long enough for this to matter.

Do this in host_install_postboot_complete since it seems to me like we
don't want this in guests any more than we want it in hosts.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
 Osstest/TestSupport.pm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm
index d87b6c89..e554af38 100644
--- a/Osstest/TestSupport.pm
+++ b/Osstest/TestSupport.pm
@@ -3006,6 +3006,8 @@ sub guest_editconfig_nocd ($$) {
 sub host_install_postboot_complete ($) {
     my ($ho) = @_;
     target_core_dump_setup($ho);
+    target_cmd_root($ho, "update-rc.d cron disable");
+    target_cmd_root($ho, "service cron stop");
     target_cmd_root($ho, "update-rc.d osstest-confirm-booted start 99 2 .");
     target_https_mitm_proxy_setup($ho);
 }
-- 
2.11.0


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel