From 6c0347a948fe15bb471f741e46801799d46e5888 Mon Sep 17 00:00:00 2001 From: yxxhero Date: Thu, 29 May 2025 21:47:42 +0800 Subject: [PATCH] fix more tests Signed-off-by: yxxhero --- test/integration/test-cases/chartify-with-non-chart-dir.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/integration/test-cases/chartify-with-non-chart-dir.sh b/test/integration/test-cases/chartify-with-non-chart-dir.sh index 62083b0b..b508868c 100644 --- a/test/integration/test-cases/chartify-with-non-chart-dir.sh +++ b/test/integration/test-cases/chartify-with-non-chart-dir.sh @@ -17,9 +17,12 @@ test_start "$case_title" info "Comparing ${case_title} diff for output ${chartify_with_non_chart_dirt_reverse} with ${diff_out_file}" for i in $(seq 10); do info "Comparing chartify-with-non-chart-dir diff log #$i" - ${helmfile} -f ${chartify_with_non_chart_dirt_input_dir}/helmfiles/helmfile.yaml diff 2>&1 | grep -vE "^(Comparing release|Building dependency release)" > ${chartify_with_non_chart_dirt_reverse} || fail "\"helmfile diff\" shouldn't fail" + ${helmfile} -f ${chartify_with_non_chart_dirt_input_dir}/helmfiles/helmfile.yaml diff &> ${chartify_with_non_chart_dirt_reverse} || fail "\"helmfile diff\" shouldn't fail" + cat ${chartify_with_non_chart_dirt_reverse} | grep -vE "^(Comparing release|Building dependency release)" > ${chartify_with_non_chart_dirt_reverse} + cat ${diff_out_file} cat ${chartify_with_non_chart_dirt_reverse} + diff -u ${diff_out_file} ${chartify_with_non_chart_dirt_reverse} || fail "\"helmfile diff\" should be consistent" echo code=$? done