[llvm] Handle Windows line endings in tag-html test (PR #113000)
Daniel Paoliello via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 18 16:23:12 PDT 2024
https://github.com/dpaoliello created https://github.com/llvm/llvm-project/pull/113000
The tag-html.test has been failing for me and [in CI](https://buildkite.com/llvm-project/github-pull-requests/builds/111277#0192a122-c5c9-4e4e-bc5b-7532fec99ae4) if Git happens to decide to check out the baseline file with Windows line endings.
This fix for this is to call `dos2unix` to strip Windows newlines from the baselines files in the test output directory before embedding them.
>From a120d6062029b37c6e2edc1fa9eb4a30aec60791 Mon Sep 17 00:00:00 2001
From: "Daniel Paoliello (HE/HIM)" <danpao at microsoft.com>
Date: Fri, 18 Oct 2024 16:21:50 -0700
Subject: [PATCH] Handle Windows line endings in tag-html test
---
llvm/test/tools/llvm-rc/tag-html.test | 1 +
1 file changed, 1 insertion(+)
diff --git a/llvm/test/tools/llvm-rc/tag-html.test b/llvm/test/tools/llvm-rc/tag-html.test
index 3620fe954ba1c8..6eaef484b97df0 100644
--- a/llvm/test/tools/llvm-rc/tag-html.test
+++ b/llvm/test/tools/llvm-rc/tag-html.test
@@ -1,5 +1,6 @@
; RUN: rm -rf %t && mkdir %t && cd %t
; RUN: cp %p/Inputs/webpage*.html .
+; RUN: dos2unix webpage*.html
; RUN: llvm-rc -no-preprocess /FO %t/tag-html.res -- %p/Inputs/tag-html.rc
; RUN: llvm-readobj %t/tag-html.res | FileCheck %s --check-prefix HTML
More information about the llvm-commits
mailing list