p3400: stop using tac(1)

b3dfeebb92 (rebase: avoid computing unnecessary patch IDs, 2016-07-29) added a perf test that calls tac(1) from GNU core utilities. Support systems without it by reversing the generated list using sort -nr instead. sort(1) with options -n and -r is already used in other tests. Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

René Scharfe committed Oct 2, 2021 at 19:44 UTC 100c2da2d3a330366588143d720f09a88926972a
1 file changed +1 -1
t/perf/p3400-rebase.sh
+1 -1
@@ -18,7 +18,7 @@ test_expect_success 'setup rebasing on top of a lot of changes' '
18 test_tick &&
19 git commit -m commit$i unrelated-file$i &&
20 echo change$i >unrelated-file$i &&
21 - test_seq 1000 | tac >>unrelated-file$i &&
21 + test_seq 1000 | sort -nr >>unrelated-file$i &&
22 git add unrelated-file$i &&
23 test_tick &&
24 git commit -m commit$i-reverse unrelated-file$i ||