Thanks, that explains the situation. The patch for checking
"--color=never" works. But there is also another case, where the
"--dired" argument of ls disturbs Tramp.

I've committed another patch to Tramp's repository, which shall fix
this. Please apply again "M-x tramp-cleanup-all-connections" before
running the test, because there are changed connection properties.