Skip to content

test: stop the suites depending on the runner's locale - #125

Merged
m1ngsama merged 3 commits into
mainfrom
fix/tests-client-locale
Nov 16, 2026
Merged

m1ngsama merged 3 commits into
mainfrom
fix/tests-client-locale

Conversation

@m1ngsama

Copy link
Copy Markdown
Owner

Every PR has failed CI since the runner images changed, main included: on macOS the anonymous login checks see English instead of the Chinese prompt they expect, and on Ubuntu expect stops matching any non-ASCII mark such as the verified ✓.

  • Suites that expect the server's Chinese prompt start ssh without LANG, LC_ALL and LC_MESSAGES, as test_client_lang.sh already does. ssh applies SendEnv from ssh_config after the command line, so -o SendEnv=-* cannot clear the macOS default.
  • run_suites.sh clears the locale so sessions keep TNT_LANG; it now sets LC_CTYPE=C.UTF-8, so expect still reads UTF-8. TNT picks a language only from LC_ALL, LC_MESSAGES and LANG.
  • A failed session prints the last 20 lines of its log as well as the first 60. The reason a session failed is printed last, and was cut off before.

CI passes on Ubuntu, macOS and Alpine.

@m1ngsama
m1ngsama merged commit 1b209c9 into main Nov 16, 2026
8 checks passed
@m1ngsama
m1ngsama deleted the fix/tests-client-locale branch November 16, 2026 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant