From patchwork Wed Jun 23 18:00:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 12340297 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 63CB5C4743C for ; Wed, 23 Jun 2021 18:10:41 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F3D4861075 for ; Wed, 23 Jun 2021 18:10:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F3D4861075 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amsat.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:47922 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lw7Ki-0004Kh-5y for qemu-devel@archiver.kernel.org; Wed, 23 Jun 2021 14:10:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40754) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lw7BU-0006Qf-Jv; Wed, 23 Jun 2021 14:01:08 -0400 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]:36818) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lw7BT-0003J8-0f; Wed, 23 Jun 2021 14:01:08 -0400 Received: by mail-wr1-x432.google.com with SMTP id l12so2894407wrt.3; Wed, 23 Jun 2021 11:01:06 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=FLbphoqmwiUyiyCMD4ROz97Sbo7JeHpruBGsZnhByOI=; b=fcoQrJ8x8/1mPNpptxbB4XtkjeFOs6vqQ/BNz39Km7riPQ7ylX3nNiLa/lV16JY6YQ jnOGY7uFy/gcHrPAPmJhTYis+k6bQcxBqbRteZUTKP/l4XRg+4hjYnBwLIc6T/JFNkcL rrAcUsT5qYJn4j7ZlOt824VKM5ybFgiafQzD6HtXmDVW8wPua+XXRRnEd1ozgty3yIwB bC5Ql1qLTLsOZd9e/NAsEEyXgkRt4ad41Xp6pYGtx/mxaUGT+6dUFHbiOlUNKHANOUzH nwWlLcsRVozJlD5QRsbcer11UK7cEF1YZ4d0w8/pnG9JptrAKV1WWKoXJ1okQSZGzblE bJjA== 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 :in-reply-to:references:mime-version:content-transfer-encoding; bh=FLbphoqmwiUyiyCMD4ROz97Sbo7JeHpruBGsZnhByOI=; b=kD1WMVVfy0oqPDLq1xDu2cYg7H46/PjzZ7q1xFLLY46+lQsxY9prnPMhnXFsyjap3U +ER7+mtgsgGBTXtUW+w8ZhBcW5I4kqdSPAqz2hBxmHPO1pcur2vjPzEJzFjLDYtsr4DW co555OXiC++rE3JG45TV0Amb7I4JhAhVC56txx//E53X2M8oBOqNpZu8Wnjt93q7oLuy 1GLifnP0IVRZTgWGtQWpB4wdqnpB82O8JB+FMbAhpC2ZDiWufc+jzdwouswDpf+zdhfW e7z5qrJv88aS/sB3u/78nkld+7t/dfywUOXIAV3m1cWs9wI6611KmVl/F2IDnncey8X/ 3v/A== X-Gm-Message-State: AOAM531VpwfgoNTnA0s+uRN+VoAkcgtsraPKE1ggFHcmppM0HF/9rcZa NCbaqr1hcj7IaYxV7pOYQEawB2I+fYWPow== X-Google-Smtp-Source: ABdhPJxzse7zV9GRa66MWQpHURrTNuVK6ZqzcVzzftBOxkO+nUJXY5Yrn8js0mmSM5U1YQbHB04l5g== X-Received: by 2002:a5d:6502:: with SMTP id x2mr1429346wru.327.1624471264954; Wed, 23 Jun 2021 11:01:04 -0700 (PDT) Received: from x1w.redhat.com (93.red-83-35-24.dynamicip.rima-tde.net. [83.35.24.93]) by smtp.gmail.com with ESMTPSA id y189sm6660678wmg.6.2021.06.23.11.01.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Jun 2021 11:01:04 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH 8/9] tests/acceptance: Remove now unused pow2ceil() Date: Wed, 23 Jun 2021 20:00:20 +0200 Message-Id: <20210623180021.898286-9-f4bug@amsat.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210623180021.898286-1-f4bug@amsat.org> References: <20210623180021.898286-1-f4bug@amsat.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wr1-x432.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Daniel_P_=2E_Berrang=C3=A9?= , qemu-block@nongnu.org, Bin Meng , =?utf-8?q?Philipp?= =?utf-8?q?e_Mathieu-Daud=C3=A9?= , Tom Yan , Alexander Bulekov , Niek Linnenbank , =?utf-8?q?Michal_Such=C3=A1nek?= , =?utf-8?q?Philippe_Ma?= =?utf-8?q?thieu-Daud=C3=A9?= , Warner Losh Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" We don't use pow2ceil() anymore, remove it. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Willian Rampazzo --- tests/acceptance/boot_linux_console.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/tests/acceptance/boot_linux_console.py b/tests/acceptance/boot_linux_console.py index 48c0ba09117..77bc80c505d 100644 --- a/tests/acceptance/boot_linux_console.py +++ b/tests/acceptance/boot_linux_console.py @@ -29,12 +29,6 @@ except CmdNotFoundError: P7ZIP_AVAILABLE = False -""" -Round up to next power of 2 -""" -def pow2ceil(x): - return 1 if x == 0 else 2**(x - 1).bit_length() - """ Expand file size """ @@ -43,12 +37,6 @@ def image_expand(path, size): with open(path, 'ab+') as fd: fd.truncate(size) -""" -Expand file size to next power of 2 -""" -def image_pow2ceil_expand(path): - image_expand(path, pow2ceil(os.path.getsize(path))) - class LinuxKernelTest(Test): KERNEL_COMMON_COMMAND_LINE = 'printk.time=0 '