From patchwork Fri Jul 7 14:15:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Venkata Pyla X-Patchwork-Id: 13304982 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 aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3CF0DC001DE for ; Fri, 7 Jul 2023 14:16:10 +0000 (UTC) Received: from mo-csw.securemx.jp (mo-csw.securemx.jp [210.130.202.158]) by mx.groups.io with SMTP id smtpd.web10.13305.1688739361772338442 for ; Fri, 07 Jul 2023 07:16:02 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: toshiba-tsip.com, ip: 210.130.202.158, mailfrom: venkata.pyla@toshiba-tsip.com) Received: by mo-csw.securemx.jp (mx-mo-csw1122) id 367EFxr31368970; Fri, 7 Jul 2023 23:16:00 +0900 X-Iguazu-Qid: 2rWhi9UHc3a4xkG6KG X-Iguazu-QSIG: v=2; s=0; t=1688739359; q=2rWhi9UHc3a4xkG6KG; m=KaDWAZD8gMdpFHnJw5/dUy5qSKtgeUEJ44K/PjscXls= Received: from imx12-a.toshiba.co.jp ([38.106.60.135]) by relay.securemx.jp (mx-mr1120) id 367EFwvn1727333 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Fri, 7 Jul 2023 23:15:59 +0900 From: venkata.pyla@toshiba-tsip.com To: cip-dev@lists.cip-project.org, jan.kiszka@siemens.com Cc: venkata pyla , dinesh.kumar@toshiba-tsip.com, kazuhiro3.hayashi@toshiba.co.jp Subject: [isar-cip-core v3 4/8] repro-tests.sh: Enable html output in diffoscope Date: Fri, 7 Jul 2023 19:45:46 +0530 X-TSB-HOP2: ON Message-Id: <20230707141550.27805-5-venkata.pyla@toshiba-tsip.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <176E5CF032D87010.7887@lists.cip-project.org> References: <176E5CF032D87010.7887@lists.cip-project.org> MIME-Version: 1.0 X-OriginalArrivalTime: 07 Jul 2023 14:15:54.0465 (UTC) FILETIME=[8AA7BD10:01D9B0DD] List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 07 Jul 2023 14:16:10 -0000 X-Groupsio-URL: https://lists.cip-project.org/g/cip-dev/message/12269 From: venkata pyla diffoscope generates output in html format that will be helpful to easily view the non-reproducible differences in the browser. Signed-off-by: venkata pyla --- .reproducible-check-ci.yml | 3 ++- scripts/repro-tests.sh | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.reproducible-check-ci.yml b/.reproducible-check-ci.yml index 079b53d..4d38e0a 100644 --- a/.reproducible-check-ci.yml +++ b/.reproducible-check-ci.yml @@ -64,7 +64,8 @@ when: always expire_in: 1 day paths: - - "./*diffoscope_output.txt" + - "diffoscope_output" + - "./*diffoscope_output.*" # repro build diff --git a/scripts/repro-tests.sh b/scripts/repro-tests.sh index b37c15e..94de950 100755 --- a/scripts/repro-tests.sh +++ b/scripts/repro-tests.sh @@ -78,6 +78,8 @@ res=0 for file in "$@"; do if [ -f "${artifacts1}/${file}" ] && [ -f "${artifacts1}/${file}" ]; then if $DIFFOSCOPE --text "${file}.diffoscope_output.txt" \ + --html-dir diffoscope_output \ + --html "${file}.diffoscope_output.html" \ "${artifacts1}/${file}" \ "${artifacts2}/${file}" > /dev/null 2>&1; then echo "${file}: ${GREEN}Reproducible${NC}" | tee -a diffoscope_output.txt