From patchwork Sat Jun 10 14:27:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 691571 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 65C78C7EE37 for ; Sat, 10 Jun 2023 14:28:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233239AbjFJO2D (ORCPT ); Sat, 10 Jun 2023 10:28:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232422AbjFJO2C (ORCPT ); Sat, 10 Jun 2023 10:28:02 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C255C0; Sat, 10 Jun 2023 07:28:02 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9E70C60BA6; Sat, 10 Jun 2023 14:28:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6C98CC433D2; Sat, 10 Jun 2023 14:27:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686407281; bh=3Pl5NNj2WQ4a63Fd2+LlFzfDj6G+Cm0dgJqNQzNyZQ8=; h=From:Date:Subject:To:Cc:From; b=StLs+5sSCfED37rmgsW+raG3Uanrv72zHKlmWZKgPQemF0Mu8zr0/aCo/Bcv6Wwk3 EBPtwcgKnfYmfvEKmdjW9ByC/rftbzUqJ4dtEW8QEiChxTkTryPBTMujF2fYhEetzR WOIGpZlBkjsbrOKYzkhLHU6k7FFRBxJMWT2xmfvQuvujHi7mUATB7U3Yg9G7vc4rkU rV4bZ26oxyHN5dN6N8wCcGuJk9ao99UoZGE53ZcC4vn46JNCDtKj+l2q/G8CLG/wXr mmByefGRTsM6876KuxvkQYRvxQmxstGc0uhPhkLqDq4N/dUjh5xj7iRwcUFdnB3dny SD+VKeOQNZ5vA== From: Mark Brown Date: Sat, 10 Jun 2023 15:27:55 +0100 Subject: [PATCH] selftests/ftace: Fix KTAP output ordering MIME-Version: 1.0 Message-Id: <20230609-ftrace-ktap-order-v1-1-0abf4d0d6922@kernel.org> X-B4-Tracking: v=1; b=H4sIAGqIhGQC/x2NQQqDMBAAvyJ77kKqVrFfKR42yVoXIZGNqCD+3 ehxBoY5ILEKJ/gWByivkiSGDO9XAW6k8GcUnxlKU1amMR0Oi5JjnBaaMapnRf+xTU1t7V3bQe4 sJUarFNx4l1vU6daz8iD7s/r153kBAXYY/HoAAAA= To: Steven Rostedt , Masami Hiramatsu , Shuah Khan Cc: Shuah Khan , linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Mark Brown X-Mailer: b4 0.13-dev-bfdf5 X-Developer-Signature: v=1; a=openpgp-sha256; l=1045; i=broonie@kernel.org; h=from:subject:message-id; bh=3Pl5NNj2WQ4a63Fd2+LlFzfDj6G+Cm0dgJqNQzNyZQ8=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkhIhuaqKU9QXH2Pd0o8iH20hNSB1wgszxiKpcyQG8 LrJ3CViJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZISIbgAKCRAk1otyXVSH0PZ7B/ 96xG/o6pwehdllnuUNb0odnFd8tIOYO6YiGGQub0HRhsU3Gp6d8FQfkc4DlEXgS0dBSZe+ZQO1Rndo D2S094tGQeyYk+Zj1vFmk/K+E1J2GMQhgONIaBovcAqEmOiBn833BY4IBLtPbcRbVi2zyjmkWywpjy UXJDmLvQqZEEBBBLKsawcOlc/BNolOirV3IX3CQtBbxN71CAZJHYNjj4g5VLmdKHopSqi9SSwl736o +hFfKiX/lk+6Wa74JToobApkYEzwoA0U2o/oEqpvSK25LMfCSiIRny9IO9yZjuA7tKXYnPVyNS/RG4 tlt+V8Rv3QI1qnrEvQg6meRk3lxFYY X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org The KTAP parser I used to test the KTAP output for ftracetest was overly robust and did not notice that the test number and pass/fail result were reversed. Fix this. Fixes: dbcf76390eb9 ("elftests/ftrace: Improve integration with kselftest runner") Signed-off-by: Mark Brown Acked-by: Masami Hiramatsu (Google) Acked-by: Steven Rostedt (Google) --- tools/testing/selftests/ftrace/ftracetest | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- base-commit: dbcf76390eb9a65d5d0c37b0cd57335218564e37 change-id: 20230609-ftrace-ktap-order-d5b64a74dc79 Best regards, diff --git a/tools/testing/selftests/ftrace/ftracetest b/tools/testing/selftests/ftrace/ftracetest index 2506621e75df..cb5f18c06593 100755 --- a/tools/testing/selftests/ftrace/ftracetest +++ b/tools/testing/selftests/ftrace/ftracetest @@ -301,7 +301,7 @@ ktaptest() { # result comment comment="# $comment" fi - echo $CASENO $result $INSTANCE$CASENAME $comment + echo $result $CASENO $INSTANCE$CASENAME $comment } eval_result() { # sigval