From patchwork Mon Nov 25 20:30:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierre-Jean Texier X-Patchwork-Id: 1200554 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=quarantine dis=none) header.from=koncepto.io Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=koncepto.io header.i=@koncepto.io header.b="INy4WJVZ"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47MJYy2SNGz9sP6 for ; Tue, 26 Nov 2019 07:30:14 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 9C35887E5D; Mon, 25 Nov 2019 20:30:12 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3B78eqWItQn7; Mon, 25 Nov 2019 20:30:11 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 8331787E58; Mon, 25 Nov 2019 20:30:11 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 87E071BF3A0 for ; Mon, 25 Nov 2019 20:30:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 7F0CF85F0B for ; Mon, 25 Nov 2019 20:30:07 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nvUEo8x3XxWt for ; Mon, 25 Nov 2019 20:30:06 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from koncepto.io (koncepto.io [195.154.119.111]) by fraxinus.osuosl.org (Postfix) with ESMTPS id BDFA685EEF for ; Mon, 25 Nov 2019 20:30:06 +0000 (UTC) Received: from menoah.home (lfbn-1-6734-38.w90-120.abo.wanadoo.fr [90.120.168.38]) by koncepto.io (Postfix) with ESMTPSA id 405E860033; Mon, 25 Nov 2019 21:30:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=koncepto.io; s=default; t=1574713805; bh=T8ARRJhaFvLp7Jbj2xI2Uwx2EJSWPeoGwwchaIxRCJ0=; h=From:To:Cc:Subject:Date:From; b=INy4WJVZv+/Rl3S8TztkLkFnyxYnFg+Sk3TgpBuFr6BjedERdJ7ClsU9wwZ/CAGFh tZhI7yigc996U28T6ueT/vhDCAP3NSK5vmfGsC7Rj5X55cXPTI3AYDPPNZTIdgziTx OWweHoJ7SJwwxHzzNfSm8Tezlzu6iHCGtzRhOasZq24OFom4+klVNOJs7JuQQ/zr+d hvC0PUggWoQgK94An0qvQHR9ABQ6p1wX+fGM99b4s6wJ3fEQ0m8gBCxxP9i8VoZfZD BTvZJHM6YGPWzR5Gn8yri7PWmFcja1GSJC8V8wP1FLIgzkQZa5AEWPzMQcPYfIzFPZ lCJ3045O2uJ9A== From: Pierre-Jean Texier To: buildroot@buildroot.org Date: Mon, 25 Nov 2019 21:30:01 +0100 Message-Id: <1574713802-20461-1-git-send-email-pjtexier@koncepto.io> X-Mailer: git-send-email 2.7.4 Subject: [Buildroot] [PATCH/next] test_lxc.py: fix code style X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Pierre-Jean Texier , Patrick Havelange , Ricardo Martincoski MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Fix these warnings: E122 continuation line missing indentation or outdented E127 continuation line over-indented for visual indent E265 block comment should start with '# ' E302 expected 2 blank lines, found 1 F401 'pexpect' imported but unused Fixes: - https://gitlab.com/buildroot.org/buildroot/-/jobs/360824861 Signed-off-by: Pierre-Jean Texier --- support/testing/tests/package/test_lxc.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/support/testing/tests/package/test_lxc.py b/support/testing/tests/package/test_lxc.py index 151bcf1..346247d 100644 --- a/support/testing/tests/package/test_lxc.py +++ b/support/testing/tests/package/test_lxc.py @@ -1,7 +1,7 @@ import os import infra.basetest -import pexpect + class TestLxc(infra.basetest.BRTest): config = \ @@ -23,24 +23,24 @@ class TestLxc(infra.basetest.BRTest): BR2_ROOTFS_OVERLAY="{}" BR2_TARGET_ROOTFS_CPIO=y """.format( - infra.filepath("tests/package/test_lxc/lxc-kernel.config"), - infra.filepath("tests/package/test_lxc/rootfs-overlay")) + infra.filepath("tests/package/test_lxc/lxc-kernel.config"), + infra.filepath("tests/package/test_lxc/rootfs-overlay")) def run_ok(self, cmd): self.assertRunOk(cmd, 120) def wait_boot(self): - #the complete boot with systemd takes more time than what the default multipler permits + # the complete boot with systemd takes more time than what the default multipler permits self.emulator.timeout_multiplier *= 10 self.emulator.login() def setup_run_test_container(self): self.run_ok("lxc-create -n lxc_iperf3 -t none -f /usr/share/lxc/config/minimal-iperf3.conf") self.run_ok("lxc-start -l trace -n lxc_iperf3 -o /tmp/lxc.log -L /tmp/lxc.console.log") - #need to wait for the container to be fully started + # need to wait for the container to be fully started self.run_ok("sleep 2") self.run_ok("iperf3 -c 192.168.1.2 -t 2") - #if the test fails, just cat /tmp/*.log + # if the test fails, just cat /tmp/*.log def test_run(self): cpio_file = os.path.join(self.builddir, "images", "rootfs.cpio") @@ -50,7 +50,7 @@ class TestLxc(infra.basetest.BRTest): kernel_cmdline=[ "console=ttyAMA0,115200"], options=["-initrd", cpio_file, - "-dtb", dtb_file, - "-M", "vexpress-a9"]) + "-dtb", dtb_file, + "-M", "vexpress-a9"]) self.wait_boot() self.setup_run_test_container()