fix: Remove platform specific part from output

This commit is contained in:
Ilya Kuznetsov 2025-01-20 14:39:54 +01:00
parent 19b5018985
commit 44aba7e0e0
No known key found for this signature in database
GPG Key ID: 91F3DDCF5D21CDDF
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ Exit code: 1
}
>>> errcode $CLI bundle validate -o json --var-file=var_files/not_found.json
Error: failed to read variables file: open var_files/not_found.json: no such file or directory
Error: failed to read variables file: open var_files/not_found.json:<stripped>
Exit code: 1

View File

@ -10,7 +10,7 @@ trace $CLI bundle validate -o json --var="cluster_key=mlops_stacks-cluster" | jq
trace errcode $CLI bundle validate -o json --var-file=var_files/normal.json --var="cluster_key=mlops_stacks-cluster" | jq $cluster_expr
# file not found
trace errcode $CLI bundle validate -o json --var-file=var_files/not_found.json | jq $cluster_expr
trace errcode $CLI bundle validate -o json --var-file=var_files/not_found.json 2> >(sed 's/\(Error: failed to read variables file: open var_files\/not_found.json:\).*/\1<stripped>/' >&2) | jq $cluster_expr
# file cannot be parsed
trace errcode $CLI bundle validate -o json --var-file=var_files/invalid_json.json | jq $cluster_expr