From patchwork Fri Apr 5 09:00:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 13618708 Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 55D0413D290; Fri, 5 Apr 2024 09:01:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712307694; cv=none; b=JRsuxRZLw6Fo4YOa9liqxYyfgptLZlNx2M1P48rAtXAuKY5wBrstTuQ/s4GXWRLA6Z8r8iYifUmXgzXnbkFKK/ZTPKNTilq48AEDGrOhoM8hHBKmXq7AobFRfKjufCahVgE1FxSpyvNArqD90MsO2k1bXl6GqergwO9q5PHq1uI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712307694; c=relaxed/simple; bh=iorWhAXzDkMgXS5/h1dXUFesPq+RiQ56mLvxEzBdjLQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Ilk/gbr44Cph3rQ5rTEXb3NV2/pFH/q3WgAC75oLZf3YnFaBBdvRsVIx1J0A/YUhfrAZXP4+TiRE4PlZitbZdnzoFV2w2Ip0iHrqN3vwYSpUSa7HazGZ8ya9Oez/ztpScBgg53xji6hX5+WZWdxbGjMRlYSE5Oz6nbKCuv5nVvE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=YgqljkMQ; arc=none smtp.client-ip=209.85.210.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="YgqljkMQ" Received: by mail-pf1-f178.google.com with SMTP id d2e1a72fcca58-6ecf3943040so961514b3a.0; Fri, 05 Apr 2024 02:01:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712307692; x=1712912492; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=OJFizl9fM2o773KG2KC0tcguyLSt89Cu1ul3ajDj2fU=; b=YgqljkMQxl4rnBZCTdSTPK8G8OOLJj9Dv0aN/p9jwR1zSEODMXNAnqXfIkWMVLZ9Pe aZNULXj92+wm68626fcwQnxc605ntnFCZHRiXFpADvY6v/ouYJu2roVhSRBSaINiblFl Yzq9+SALr67Va6FwKbmdzD1ZcyzLTdG5zIJ5U/s5uY4tI76vtRvB1D6P+kTaZReUW5xX DrS24hDij+OSQW4yPARUXMeLDQAzetbOFKpk9Un2njHI4pBKVyx0hneXc/UvUeHWIxY5 mR6l/5yFvtqnBboZPwGZZswxo1iFqXOmauoLOMcSbsPSXGAbk4ZnzrRICEWcDTO0gfiR z1Ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712307692; x=1712912492; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OJFizl9fM2o773KG2KC0tcguyLSt89Cu1ul3ajDj2fU=; b=k9X5kUO2Z6X/6Qo9pgWUdp5ELBtUQZvOzpXj3TdcWQsx9+skcTi9jrViQOqwQ4PovT q4pmBoSaojBHkWYpUsxcdkEOcdi2ULHVOx3QIQKEgNoFPflQCBBgHFnaJQxuXfk6pUu/ fCa/hJtEJebGkxDzkqSJZnzqOQvsmoIOTcH0P4LegXDxcEqjKuMEKu2ghygzsuYRXNKI JNwpj69p6nCEds9P/kSoU2X9NuTqICic9vGQWbKrW/KR/LOwoNNfGqVc0nV9pMVBKUrI ZI6HbdBxqnLJTb4DLmAo8KAj5CPAdpEJPEbEdi90+Xwx2VvCFSSJ7HozMpOeCFYLaet9 96dA== X-Forwarded-Encrypted: i=1; AJvYcCVTHWYvdNbVFGqd/tczlXZMU2KSNISK6bVSeujaszguumMJQwritnWAv6Yoseth+tU8qzJh4hZ38KjQ0Bs6yBPoxGGzyPbtyFfkDKoGjLYprhENQPeLfov+tDJj5WrJCg== X-Gm-Message-State: AOJu0YwcunrR4GaAFJP4dkwFhG96Jj20oiuyyZDrNr8I4J6SNtXg8tK0 JEufXkds5z3HGUz/+tAvXha6SGQnFYaEKv68BDTEa1HQmH1T+YFQ X-Google-Smtp-Source: AGHT+IFwBaywWHmRGfwbcmA9HRMJtA9TMzs93GW1jGz92SN7GfW4oW/+SF2bpNq91FjZDkLQnrluFw== X-Received: by 2002:a05:6a21:9996:b0:1a3:55d2:1489 with SMTP id ve22-20020a056a21999600b001a355d21489mr1063196pzb.7.1712307692560; Fri, 05 Apr 2024 02:01:32 -0700 (PDT) Received: from wheely.local0.net (124-169-104-130.tpgi.com.au. [124.169.104.130]) by smtp.gmail.com with ESMTPSA id s12-20020a62e70c000000b006ecf25d0b8dsm995783pfh.184.2024.04.05.02.01.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 02:01:32 -0700 (PDT) From: Nicholas Piggin To: Andrew Jones Cc: Nicholas Piggin , Paolo Bonzini , Thomas Huth , Alexandru Elisei , Eric Auger , Janosch Frank , Claudio Imbrenda , =?utf-8?q?Nico_B=C3=B6hr?= , David Hildenbrand , Shaoqin Huang , Nikos Nikoleris , Nadav Amit , David Woodhouse , Ricardo Koller , rminmin , Gavin Shan , Nina Schoetterl-Glausch , Sean Christopherson , kvm@vger.kernel.org, kvmarm@lists.linux.dev, kvm-riscv@lists.infradead.org, linux-s390@vger.kernel.org Subject: [kvm-unit-tests RFC PATCH 03/17] shellcheck: Fix SC2295 Date: Fri, 5 Apr 2024 19:00:35 +1000 Message-ID: <20240405090052.375599-4-npiggin@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240405090052.375599-1-npiggin@gmail.com> References: <20240405090052.375599-1-npiggin@gmail.com> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 SC2295 (info): Expansions inside ${..} need to be quoted separately, otherwise they match as patterns. Doesn't appear to be a bug since the match string does not include patterns. Signed-off-by: Nicholas Piggin Reviewed-by: Andrew Jones --- run_tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_tests.sh b/run_tests.sh index 9067e529e..116188e92 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -99,7 +99,7 @@ else local testname="$1" CR=$'\r' while read -r line; do - line="${line%$CR}" + line="${line%"$CR"}" case "${line:0:4}" in PASS) echo "ok TEST_NUMBER - ${testname}: ${line#??????}" >&3