From patchwork Wed Jul 17 13:43:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 169140 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp998123ilk; Wed, 17 Jul 2019 06:51:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqyzkvYI8SDl6G3DKZH1hlGfiofGjtLFUCB2zt1jWWtfy+VTWvJZhltg2d9TCaYrF/q2fhw4 X-Received: by 2002:a50:ac07:: with SMTP id v7mr35063652edc.205.1563371507795; Wed, 17 Jul 2019 06:51:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563371507; cv=none; d=google.com; s=arc-20160816; b=EcpsPKA50EISTZKvNqUniRMmgMlAEwhyZKOGQqkgKoQ0sbxac6Hx26bTcMW5Bka0KT 51hY2HrsVtdJW4qiW9oJj24e98RukkV6HTRPmJ0V5snvjBo0WCyO+zWvZAi8nEzAVHn9 KFVvQJdb3k8U9E1fRBHdKFRKq4apoGihmb1NpC/yG54ekNc2Pmbgds6lNY35biZ51a6V 568O3++LbWdyJzteXG8jOiIdCv2PyR67TdweUTMio5ug9ret+1w5xM1dqgNuZPO/s3nm en+L/6hTk8787L2ANR8l24BNWwokTUoaTlZ3jVqmiKB0/vHOZU/s425EoPuqxVCEXO3v 85fQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=K3Wy/ye/eKVXgXA5uUlnNSPRyeCvrtd7wt/0KqJUCpc=; b=S1VBTPB2r3lf/IgqApcxoPtcgFwpk5XmOvk0KWP8Kpy/O12zDr/Gn6dxKQ/jTvZ/8Y HqtzB0m0/jTdk0JqOhv61p8CdpJ8dh/aXJXxD2nkEYhdZrlGOvGEvitXN7TM3r2FECal xT16y3V+qr4mp9WwA78kwVqyEH7qTpPlNxVk97hncbnTbwQzNlP/bpIEP3YmnKuBNMwd q0kGVIundZd9M3xB00mh1tNqgTFIepMMgFmO1wS/hJlfWdJ17Jon9G3a3x8nibd0EZ0/ nFvsuIxkFEt9nVskusR0DL7EA0rBGE6fzA92bGe0kU4xqdog2TAtSNU/lnblWZMbqlYk V26A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=SuUiua8F; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id gf13si12111602ejb.228.2019.07.17.06.51.47 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 17 Jul 2019 06:51:47 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=SuUiua8F; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:57416 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hnkLS-0007WN-7F for patch@linaro.org; Wed, 17 Jul 2019 09:51:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57820) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hnkKg-0004XM-5D for qemu-devel@nongnu.org; Wed, 17 Jul 2019 09:50:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hnkKf-00012e-6n for qemu-devel@nongnu.org; Wed, 17 Jul 2019 09:50:58 -0400 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]:34665) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hnkKe-00011l-Vr for qemu-devel@nongnu.org; Wed, 17 Jul 2019 09:50:57 -0400 Received: by mail-wr1-x42f.google.com with SMTP id 31so24964562wrm.1 for ; Wed, 17 Jul 2019 06:50:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=K3Wy/ye/eKVXgXA5uUlnNSPRyeCvrtd7wt/0KqJUCpc=; b=SuUiua8FgyBDal1XtjZN522lafFOH+OattI6ZNjg/Hvfmu5sl0VHqX+PF+1haPCc/m sXQy4tv7IXnhygMNpdIc02smwP2otyqT3v79mm8vaXo8YrYRhdXAMXzRFWHbcPVIjP5U GYyphmMaSAeFMUWXWpYASOCa7mFDy4RlcDNECxn72IZfmNQ4Ihjxf3AC7gu2TkseQDPz 88q9eT8UMBLfmN9cHeFr85kvaqpqTk5UQO+FUVmOeWlfRsceDC3tH4ndtf7FFeP4dl4W wygDokojP4ntMDAF+653qEC+cpCtlXvNFmedhWXBHyKFnFhlVdWiqk/r5/L2+ljWY0V2 wu+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=K3Wy/ye/eKVXgXA5uUlnNSPRyeCvrtd7wt/0KqJUCpc=; b=WYDfqp/Zq+QOpJZ3BzDU4X3a8svL403qZnE25+ANXpXCX8RJEIbbiZIaG8J6DlrM0C w6j1YwHXPF6y8V8vVuGZwXKpsm0LviZ1gOrzkWmm8LeZUgCHGcdo0WnIO8r0M+179+It feTT1RoBLaOTougpgXxI2X1+aPmimUJdALma9Dq/QHv1LVGXhwM2NseWk8rVY3JVenvR g00pOEJOQ6MQoBRpJW/Gkv43X2+BdbVwNoKfxmwkkeW8XxU3YexzEOg6WUfJ39rYDAed L5ufOIfI6cYNnlVGGCVVYYvglI3KJVzhCEGWAcdccjnWt3eSDJjm8CiGqrdiCeyWhHWK WTVA== X-Gm-Message-State: APjAAAWkXZ9hWYDYbFI47E+cEIH5vYfm9WyHWSGBhepHCodmCVZ+SJHP IYBhlRHmciM7UiTryVCyDkra9A== X-Received: by 2002:a5d:4108:: with SMTP id l8mr42603309wrp.113.1563371455854; Wed, 17 Jul 2019 06:50:55 -0700 (PDT) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id c6sm22425483wma.25.2019.07.17.06.50.52 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 17 Jul 2019 06:50:52 -0700 (PDT) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 9343D1FFA6; Wed, 17 Jul 2019 14:43:37 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Wed, 17 Jul 2019 14:43:32 +0100 Message-Id: <20190717134335.15351-21-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190717134335.15351-1-alex.bennee@linaro.org> References: <20190717134335.15351-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::42f Subject: [Qemu-devel] [PATCH v2 20/23] tests/qemu-iotests/check: Allow tests without groups 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: Kevin Wolf , Thomas Huth , =?utf-8?q?Alex_Benn=C3=A9e?= , "open list:Block layer core" , Max Reitz Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Thomas Huth The regular expressions in the "check" script currently expect that there is always a space after the test number in the group file, so you can't have a test in there without a group unless the line still ends with a space - which is quite error prone since some editors might remove spaces at the end of lines automatically. Thus let's fix the regular expressions so that it is also possible to have lines with one test number only in the group file. Suggested-by: Max Reitz Reviewed-by: Alex Bennée Reviewed-by: Max Reitz Signed-off-by: Thomas Huth Message-Id: <20190717111947.30356-2-thuth@redhat.com> Signed-off-by: Alex Bennée --- tests/qemu-iotests/check | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.20.1 diff --git a/tests/qemu-iotests/check b/tests/qemu-iotests/check index f925606cc52..c24874ff4aa 100755 --- a/tests/qemu-iotests/check +++ b/tests/qemu-iotests/check @@ -488,7 +488,7 @@ testlist options BEGIN { for (t='$start'; t<='$end'; t++) printf "%03d\n",t }' \ | while read id do - if grep -s "^$id " "$source_iotests/group" >/dev/null + if grep -s "^$id\( \|\$\)" "$source_iotests/group" >/dev/null then # in group file ... OK echo $id >>$tmp.list @@ -547,7 +547,7 @@ else touch $tmp.list else # no test numbers, do everything from group file - sed -n -e '/^[0-9][0-9][0-9]*/s/[ ].*//p' <"$source_iotests/group" >$tmp.list + sed -n -e '/^[0-9][0-9][0-9]*/s/^\([0-9]*\).*/\1/p' <"$source_iotests/group" >$tmp.list fi fi