[SPARK-3401][PySpark] Wrong usage of tee command in python/run-tests

Author: Kousuke Saruta <sarutak@oss.nttdata.co.jp>

Closes #2272 from sarutak/SPARK-3401 and squashes the following commits:

2b35a59 [Kousuke Saruta] Modified wrong usage of tee command in python/run-tests

(cherry picked from commit 4feb46c5feca8d48ec340dc9c8d0eccbcd41f505)
Signed-off-by: Reynold Xin <rxin@apache.org>