Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id BDEA7E00B6F; Tue, 18 Jul 2017 09:14:07 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, * medium trust * [192.55.52.43 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 5D622E00BC0 for ; Tue, 18 Jul 2017 09:14:07 -0700 (PDT) Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga105.fm.intel.com with ESMTP; 18 Jul 2017 09:14:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,378,1496127600"; d="scan'208";a="128830621" Received: from alimonb-mobl1.zpn.intel.com ([10.219.128.142]) by fmsmga006.fm.intel.com with ESMTP; 18 Jul 2017 09:14:06 -0700 From: =?UTF-8?q?An=C3=ADbal=20Lim=C3=B3n?= To: yocto@yoctoproject.org Date: Tue, 18 Jul 2017 11:14:35 -0500 Message-Id: <20170718161438.31649-3-anibal.limon@linux.intel.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170718161438.31649-1-anibal.limon@linux.intel.com> References: <20170718161438.31649-1-anibal.limon@linux.intel.com> MIME-Version: 1.0 Cc: mikko.ylinen@intel.com Subject: [yocto-autobuilder][PATCHv3 2/5] buildsteps/RunSanityTests: Add support for simpleremote target X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Jul 2017 16:14:07 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The testimage class supports a simpleremote target specifying the server and target ip to run tests over SSH. The main usage of this will in conjunction with the DAFT to make tests on real HW. [YOCTO #10604] Signed-off-by: Aníbal Limón --- .../site-packages/autobuilder/buildsteps/RunSanityTests.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/python2.7/site-packages/autobuilder/buildsteps/RunSanityTests.py b/lib/python2.7/site-packages/autobuilder/buildsteps/RunSanityTests.py index 48cd029fb71..c52672e9cc4 100644 --- a/lib/python2.7/site-packages/autobuilder/buildsteps/RunSanityTests.py +++ b/lib/python2.7/site-packages/autobuilder/buildsteps/RunSanityTests.py @@ -64,6 +64,14 @@ class RunSanityTests(BitbakeShellCommand): elif layerversion > 1: self.command = self.command + "echo 'INHERIT += \"testimage\"' >> ./conf/auto.conf;" self.command = self.command + "echo 'TEST_QEMUBOOT_TIMEOUT = \"1500\"' >> ./conf/auto.conf;" + + target_ip = self.getProperty('target_ip') + server_ip = self.getProperty('server_ip') + if target_ip and server_ip: + self.command = self.command + "echo 'TEST_TARGET=\"simpleremote\"' >> ./conf/auto.conf;" + self.command = self.command + "echo 'TEST_TARGET_IP=\"%s\"' >> ./conf/auto.conf;" % target_ip + self.command = self.command + "echo 'TEST_SERVER_IP=\"%s\"' >> ./conf/auto.conf;" % server_ip + if self.suites: if layerversion > 3: self.command = self.command + "echo 'TEST_SUITES = \"" + self.suites + "\"'" + " >> ./conf/auto.conf;" -- 2.11.0