fix more tests
Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
parent
914f5512f5
commit
6c0347a948
|
|
@ -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}"
|
info "Comparing ${case_title} diff for output ${chartify_with_non_chart_dirt_reverse} with ${diff_out_file}"
|
||||||
for i in $(seq 10); do
|
for i in $(seq 10); do
|
||||||
info "Comparing chartify-with-non-chart-dir diff log #$i"
|
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 ${diff_out_file}
|
||||||
cat ${chartify_with_non_chart_dirt_reverse}
|
cat ${chartify_with_non_chart_dirt_reverse}
|
||||||
|
|
||||||
diff -u ${diff_out_file} ${chartify_with_non_chart_dirt_reverse} || fail "\"helmfile diff\" should be consistent"
|
diff -u ${diff_out_file} ${chartify_with_non_chart_dirt_reverse} || fail "\"helmfile diff\" should be consistent"
|
||||||
echo code=$?
|
echo code=$?
|
||||||
done
|
done
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue