fix: Replace UTF-8 em-dash with ASCII hyphen in CLI output and tests
Replace em-dash (—) with ASCII hyphen (-) in: - bin/disinto: 'Dry run complete' message - bin/disinto: import skip message - lib/init/nomad/cluster-up.sh: 'Dry run complete' message - tests/disinto-init-nomad.bats: test assertions This fixes CI failures caused by bats test runner not handling UTF-8 em-dash characters correctly.
This commit is contained in:
parent
f9f044c6ed
commit
15c6cc7e16
3 changed files with 7 additions and 7 deletions
|
|
@ -44,7 +44,7 @@ setup_file() {
|
|||
[[ "$output" == *"[dry-run] Step 8/9: systemctl start nomad + poll until ≥1 node ready"* ]]
|
||||
[[ "$output" == *"[dry-run] Step 9/9: write /etc/profile.d/disinto-nomad.sh"* ]]
|
||||
|
||||
[[ "$output" == *"Dry run complete — no changes made."* ]]
|
||||
[[ "$output" == *"Dry run complete - no changes made."* ]]
|
||||
}
|
||||
|
||||
# ── --backend=nomad --empty --dry-run ────────────────────────────────────────
|
||||
|
|
@ -58,7 +58,7 @@ setup_file() {
|
|||
# both modes invoke the same cluster-up dry-run.
|
||||
[[ "$output" == *"nomad backend: --empty (cluster-up only, no jobs)"* ]]
|
||||
[[ "$output" == *"[dry-run] Step 1/9: install nomad + vault binaries + docker daemon"* ]]
|
||||
[[ "$output" == *"Dry run complete — no changes made."* ]]
|
||||
[[ "$output" == *"Dry run complete - no changes made."* ]]
|
||||
}
|
||||
|
||||
# ── --backend=docker (regression guard) ──────────────────────────────────────
|
||||
|
|
@ -238,7 +238,7 @@ setup_file() {
|
|||
@test "disinto init --backend=nomad without import flags shows skip message" {
|
||||
run "$DISINTO_BIN" init placeholder/repo --backend=nomad --dry-run
|
||||
[ "$status" -eq 0 ]
|
||||
[[ "$output" == *"no --import-env/--import-sops — skipping"* ]]
|
||||
[[ "$output" == *"no --import-env/--import-sops - skipping"* ]]
|
||||
}
|
||||
|
||||
@test "disinto init --backend=nomad --import-env --import-sops --age-key --with forgejo --dry-run shows all plans" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue