From b56e37ba3b2e23cc112d740f5f533d948895ef35 Mon Sep 17 00:00:00 2001 From: Jon Roelofs Date: Tue, 21 Apr 2026 13:38:45 -0700 Subject: [PATCH] Keep a test from printing ansi control characters This was breaking LIT's progress bar. Fix it by having filecheck verify that the upgrade was successful via a CHECK line. --- tests/lnttool/Profile.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/lnttool/Profile.py b/tests/lnttool/Profile.py index 38222e16..706d05ff 100644 --- a/tests/lnttool/Profile.py +++ b/tests/lnttool/Profile.py @@ -13,4 +13,5 @@ # RUN: mkdir -p %t # RUN: rm -rf %t/non_existing_output.lnt # RUN: lnt profile upgrade %S/Inputs/test.lntprof %t/non_existing_output.lnt -# RUN: cat %t/non_existing_output.lnt +# RUN: lnt profile getVersion %t/non_existing_output.lnt | filecheck --check-prefix=CHECK-UPGRADE %s +# CHECK-UPGRADE: 2