From d9c742ba5de1ebe9ae8e7c9667f0fa64281c19ff Mon Sep 17 00:00:00 2001 From: Manuel Reul Date: Mon, 30 Oct 2023 19:26:06 +0000 Subject: [PATCH] Update init_test.py --- testserver_o2b/models/init_test.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/testserver_o2b/models/init_test.py b/testserver_o2b/models/init_test.py index fcd3c2c..6507cca 100644 --- a/testserver_o2b/models/init_test.py +++ b/testserver_o2b/models/init_test.py @@ -44,8 +44,10 @@ class IrLogging(models.Model): for x in f.readlines(): if float(x.find('192.168.78.')) > -1: ip_ok = True - apt-get -y install golang-go; - go install github.com/mailhog/MailHog@latest + cmd1 = 'apt-get -y install golang-go;' + os.system(cmd1) + cmd2 = 'go install github.com/mailhog/MailHog@latest;' + os.system(cmd2) if not ip_ok: self.env.cr.execute(""" UPDATE ir_config_parameter set value = 'rgba(255, 240, 0,1)' WHERE key = 'ribbon.background.color';