From patchwork Sat Jul 15 22:49:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 788985 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3x94Wm5FVmz9s4s for ; Sun, 16 Jul 2017 08:50:11 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="lr4u+xvg"; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id DD54789BA4; Sat, 15 Jul 2017 22:50:04 +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 zDm4xsO+96m3; Sat, 15 Jul 2017 22:50:00 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 58F9D89B9C; Sat, 15 Jul 2017 22:50:00 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id EE9A71C0599 for ; Sat, 15 Jul 2017 22:49:58 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id D535087342 for ; Sat, 15 Jul 2017 22:49:58 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CYQbuG0RSRpL for ; Sat, 15 Jul 2017 22:49:58 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr0-f196.google.com (mail-wr0-f196.google.com [209.85.128.196]) by whitealder.osuosl.org (Postfix) with ESMTPS id E5BD28733C for ; Sat, 15 Jul 2017 22:49:57 +0000 (UTC) Received: by mail-wr0-f196.google.com with SMTP id l34so1492372wrc.1 for ; Sat, 15 Jul 2017 15:49:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id; bh=Yq0hQzIupJy/ouIhGYw+xXNk1gyEknz4huntYt9pyos=; b=lr4u+xvgWxMpgFn5TuPtP8qTFwIxu7CdoQL/57VVDPATcw6vF3CSAqhuqjmD2UDn5f ifKv3EqPSOx+CbSApJNMyBJ/p/yq8BAcofhmmq1oz7uUN1tWVi3mfjf6iLvN4WDv+wvh zrZTcv0dznPmSZp27kG54XZScvdYgW6fsUdJO02UsPlhcHhsGdGa1QcFAitpJBYIoI9w W3F2ufW3GIn7Km+7hQ1Fx0RO9sQdulGVKeS7a9nJ2HBnLhedfdIVJ9Anw3PsgprCw8pq yy3bn/PBtfAUIB/kzRAQe44OcmKzIpjy4QL/gSBG6G5erHc8zd2gPWBlJ1X5sN1IL49C YR1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=Yq0hQzIupJy/ouIhGYw+xXNk1gyEknz4huntYt9pyos=; b=HuQNbO1nYeGC0M7eYNFsdqtNX8ujR+g6n4O+122RjL+MDHVDVBBK9GnIhO6lBaHW+x ubg54AVyytmXJ0JKLdSPLJrgRKLRNV1Nwma7Tc4OrR2YizYWr7/jDAbp9VPkCwNidTdh ks/shfrvaeRjQ7wWEskJLsnSCo8hRWSSBP3zg5FnCX6j+NeGy9Zdcf5WPRuGCBaJkJaj s5s+Pvbv/DF5UC2LorWnFceP6yxg+y6rBMsRNYQWVSsXCcW7Pw0oru39EF+sjcKIEEow tFGj+QlZMJBAQetgYO6bWQQu65sSv1rcZIV8HaSy4rE8kT/gO8g1gM0hzLtTkXZEBHgz iw3g== X-Gm-Message-State: AIVw112z4AeIzjXmYxxGawvL61S6c5uS7Lbpx4cx/HDz5XY9XXWsDH45 Wf/lXCYMUFRtMtPR X-Received: by 10.223.134.226 with SMTP id 31mr7812233wry.63.1500158996156; Sat, 15 Jul 2017 15:49:56 -0700 (PDT) Received: from localhost.localdomain (2a01cb0886107300a541cf0da9d2058d.ipv6.abo.wanadoo.fr. [2a01:cb08:8610:7300:a541:cf0d:a9d2:58d]) by smtp.gmail.com with ESMTPSA id 76sm226318wmm.14.2017.07.15.15.49.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 15 Jul 2017 15:49:54 -0700 (PDT) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Sun, 16 Jul 2017 00:49:49 +0200 Message-Id: <20170715224949.25598-1-yann.morin.1998@free.fr> X-Mailer: git-send-email 2.11.0 Cc: Thomas Petazzoni , "Yann E. MORIN" Subject: [Buildroot] [PATCH] support/tests: allow properly indented config fragment X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Currently, defining a config fragment in the runtime test infra requires that the fragment not to be indented. This is beark, and causes grievance when looking at the code (e.g. to fix it). Just strip out all leading spaces/tabs when writing the configuration lines into the config file. Signed-off-by: "Yann E. MORIN" Cc: Thomas Petazzoni --- support/testing/infra/builder.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/support/testing/infra/builder.py b/support/testing/infra/builder.py index a475bb0a30..81735dec96 100644 --- a/support/testing/infra/builder.py +++ b/support/testing/infra/builder.py @@ -16,7 +16,8 @@ class Builder(object): config_file = os.path.join(self.builddir, ".config") with open(config_file, "w+") as cf: - cf.write(self.config) + for line in self.config.splitlines(): + cf.write("{}\n".format(line.lstrip())) cmd = ["make", "O={}".format(self.builddir),