]> git.ipfire.org Git - thirdparty/curl.git/commit
test1148: tolerate progress updates better (again)
authorJay Satiro <raysatiro@yahoo.com>
Tue, 7 Apr 2020 04:50:11 +0000 (00:50 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Sat, 11 Apr 2020 06:51:50 +0000 (02:51 -0400)
commit17c18fbc3015b5dc0580d16a4ff5bcf2fd88b449
tree1364d44a00b67d12099577a7d21a8fc873933ac6
parent8c92f7e82fcdd2fb17c90ecdfea6134d7a8a8185
test1148: tolerate progress updates better (again)

- Ignore intermediate progress updates.

- Support locales that use a character other than period as decimal
  separator (eg 100,0%).

test1148 checks that the progress finishes at 100% and has the right
bar width. Prior to this change the test assumed that the only progress
reported for such a quick transfer was 100%, however in rare instances
(like in the CI where transfer time can slow considerably) there may be
intermediate updates. For example, below is stderrlog1148 from a failed
CI run with explicit \r and \n added (it is one line; broken up so that
it's easier to understand).

\r
\r##################################                                        48.3%
\r######################################################################## 100.0%
\n

Closes https://github.com/curl/curl/pull/5194
tests/data/test1148