From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (NAM12-BN8-obe.outbound.protection.outlook.com [40.107.237.42]) by mx.groups.io with SMTP id smtpd.web11.13262.1686663192676017688 for ; Tue, 13 Jun 2023 06:33:12 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@nvidia.com header.s=selector2 header.b=tZNwDokD; spf=permerror, err=parse error for token &{10 18 %{i}._ip.%{h}._ehlo.%{d}._spf.vali.email}: invalid domain name (domain: nvidia.com, ip: 40.107.237.42, mailfrom: nicklew@nvidia.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f2LdsVTS0azrSuWl8Yj7kQARvOU+sXshb0GYobgUCkTmF25J6bRu6dXfhlhvcb8acKpb/HfEr9pSS0HaUlux5CQxU7VCmosUyiQwGLhU44e1cZWB4zWKtA+DnJdqSlBi0d+b4HPSU1xpMQusz4XDC1TWuJ0lL8ehINkqetTVqZQLUPH73elsbZQSIEn+L/fMgT6TVsFmkML6GBXfLxioujI0U1DgIIfua0K5SSycdt0oSeYHtKEcu9qtnz1QJRy+74YCm6LZKUXcodJy+7bmU/KnVq3aDuYrUqf7ySBR5E57tczqeiNhX9G5oOK1TQq4LSd3GNaxqw9SE/6AZ/ZxxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=kpeIy9USWG50wih4VIV/DtMJp5ieKV45MxmnJIJdECs=; b=m74GPNdJkv6Il7Z/AhdzOCu0CYeTHWuUeKJg44VkOOnIhbfEUZ7Zw/PCxpkEjfAul6gNqOgdrjUWXherTN07i7gQ5WzZt4olLJA+qjqVDcpkEHHHn3/IsFPxKxM3LEaeB1Juu/9KzhAtUT3Pm5xJ78mhDUJtsQanVhKw9G6qJt8uEFpcklbR980KaPHTU9k8b4e1EYuLymfo8+oA2U2ojZ38dUepbvM9ka0zF7qx311DQwb9fjHeDQ+4tXovAzjqhtjWH85nhj1Fi1PjxhYFcOI4sH3r18F1jceHI+pyuj9ij4wUU4dZBUTHt46yWnR9WmYIii8ZXqjC9jStkMe2IQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.233) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kpeIy9USWG50wih4VIV/DtMJp5ieKV45MxmnJIJdECs=; b=tZNwDokD1BtJs9yGesHyrdMOBR6+woKfrZ7BzHonSrXNDFGx08OY28e8WODrKGl6UvtTjzEuXj+is+tqaRCDBsa1mEoW1ztpT/sxE75HaFHIVH/MJJ6PB9dXrn60zwdPD05m3est4aqC2itSiXZh2txPtjFfHhdlDexYyYejXnVJwoKaauJFd9Sn43JLZSdMm7LufPeXJ1bTv/JX5HZZfrfCuczNCBCLinjD+ivli5oqAWDPGFfd2ax0/6YoWLzdTVHq2ftQrTf6nxpGMhlyi7PEhhOXJE5oP2T4foB+E+W7tsB4Pw0y6wBFqEqaCwXVd+OqFM+XFIj73SiB1JStbA== Received: from BYAPR01CA0031.prod.exchangelabs.com (2603:10b6:a02:80::44) by IA1PR12MB8223.namprd12.prod.outlook.com (2603:10b6:208:3f3::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6477.29; Tue, 13 Jun 2023 13:33:10 +0000 Received: from CO1PEPF000044FC.namprd21.prod.outlook.com (2603:10b6:a02:80:cafe::e9) by BYAPR01CA0031.outlook.office365.com (2603:10b6:a02:80::44) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6477.35 via Frontend Transport; Tue, 13 Jun 2023 13:33:09 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.233) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.118.233 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.233; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.233) by CO1PEPF000044FC.mail.protection.outlook.com (10.167.241.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.7 via Frontend Transport; Tue, 13 Jun 2023 13:32:58 +0000 Received: from drhqmail203.nvidia.com (10.126.190.182) by mail.nvidia.com (10.127.129.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Tue, 13 Jun 2023 06:32:30 -0700 Received: from drhqmail203.nvidia.com (10.126.190.182) by drhqmail203.nvidia.com (10.126.190.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Tue, 13 Jun 2023 06:32:29 -0700 Received: from NV-CL38DL3.nvidia.com (10.127.8.10) by mail.nvidia.com (10.126.190.182) with Microsoft SMTP Server id 15.2.986.37 via Frontend Transport; Tue, 13 Jun 2023 06:32:29 -0700 From: "Nickle Wang" To: CC: Abner Chang , Igor Kulchytskyy Subject: [edk2-redfish-client][PATCH] RedfishClientPkg/.github: fix uncrustify check error Date: Tue, 13 Jun 2023 21:32:28 +0800 Message-ID: <20230613133228.22425-1-nicklew@nvidia.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Return-Path: nicklew@nvidia.com X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PEPF000044FC:EE_|IA1PR12MB8223:EE_ X-MS-Office365-Filtering-Correlation-Id: 8e77dafa-e0b7-4424-367d-08db6c12b417 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 3wek1SxMPMnHOrXgRhTn4UvnwoY9WhiTxBc+/0uUQl5CluP+3g9tkVzSNCZsxe8GACCfKVIs+/dxc89kxQrxs6PFynB0ke+WN9IJAb92RoSgpSiUocTxZokg58d3eGJHMmgKCbzieROeu5MhAauJ+LUySDq8hU1QvO35WF7cDn6Rd1hJvpUFNLThn4Ah5b0l0XhRKUjeSAa0hnDEuzvBs8/3LPEK3WLhhJaGaKiIa4QITvhccBH003FlkHy01kO6mWC6/jvCN4EOQi/dda8EodtGm38LMv0fUCSbw/igcheFsWpHh1PqPbgTDC5PAsCe38DDX6TEPWzFn/zPzKTqHPAY7JRefMC4ssGr4lTjwJ+7D9nrWbAVsqDJp12B+n5mUgPdZqrJGJs7RdFkoszpYBxq6Io3m4pzK0Dhvh0ZdddIm3/Rr/RX2HVxndadM4YKHJZv0Iu8vFkU7mj9HvcjZsTTrn9Qj222po13enbXAC1DKPDr5vnQvNV8AdDYL6iJOJL/yMSqnK2+1H+5uXMqOR5NzcDC8t4BplYQbbFoE7gVEsKdCoWlA+dvKQdX8zFz3WVJrD2ElVkCytmYmPm+88mGhnKVzTwnniQsc78V6eJBXabny2oTessel1T/woFUeTNJSnH8ZWPgc2jO///AszFJTk5Y5kjvQ/PamsF3eC5ZujyuCS+XU/OTftYPGFeflaNVzGhVLMF3MqAqJy6hL+sIh1W2A4UfB/pHjM4n9JiI62fiUd5rKKtIkOxk/nbt X-Forefront-Antispam-Report: CIP:216.228.118.233;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc7edge2.nvidia.com;CAT:NONE;SFS:(13230028)(4636009)(39860400002)(346002)(136003)(376002)(396003)(451199021)(40470700004)(36840700001)(46966006)(70206006)(70586007)(478600001)(54906003)(5660300002)(8676002)(8936002)(36756003)(6916009)(4326008)(316002)(40460700003)(336012)(426003)(41300700001)(7696005)(82740400003)(7636003)(356005)(40480700001)(83380400001)(186003)(1076003)(86362001)(36860700001)(2906002)(4744005)(26005)(47076005)(2616005)(82310400005);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jun 2023 13:32:58.8750 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8e77dafa-e0b7-4424-367d-08db6c12b417 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.118.233];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1PEPF000044FC.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR12MB8223 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain Only run uncrustify check to c file and h file in script. Signed-off-by: Nickle Wang Cc: Abner Chang Cc: Igor Kulchytskyy --- .github/workflows/uncrustify-check.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/uncrustify-check.sh b/.github/workflows/uncr= ustify-check.sh index 59ebc0dc..ff61a6ae 100755 --- a/.github/workflows/uncrustify-check.sh +++ b/.github/workflows/uncrustify-check.sh @@ -31,7 +31,13 @@ fi cd "$REPO_PATH" =20 FAILURE=3D0 -CHANGED_FILES=3D$(git diff --name-only HEAD~$NO_COMMITS) +CHANGED_FILES=3D$(git diff --name-only HEAD~$NO_COMMITS | grep '\(\.c$\|\.= h$\)') +if [ -z "$CHANGED_FILES" ] +then + echo "No c or h file to run uncrustify check" + exit 0 +fi + for file in $CHANGED_FILES do echo "Uncrustify check file: $file" --=20 2.17.1