Re: [PATCH 3/4] t6400: use test_line_count_cmd to count # of lines in stdout
- From
Bagas Sanjaya <bagasdotme@gmail.com>
- Date
- Jun 12, 2021, 04:33 UTC
- Message-ID
- <68b41d84-e9ac-6cf1-184b-5ce9bbfbb18e@gmail.com>
- In-Reply-To
- <20210612042755.28342-4-congdanhqx@gmail.com>
Hi Đoàn,
> - test 5 -eq $(git ls-files -s | wc -l) && > - test 4 -eq $(git ls-files -u | wc -l) && > + test_line_count_cmd --out = 5 git ls-files -s && > + test_line_count_cmd --out = 4 git ls-files -u &&
I read lines above as "Formerly I tested that 5/4 should be equal to output of git ls-files -s/-u piped to wc -l, now I do the same with test_line_count_cmd".
Am I right?
-- An old man doll... just what I always wanted! - Clara