【发布时间】:2019-04-09 15:29:09
【问题描述】:
我正在尝试使用 strace 跟踪运行单元测试所涉及的文件。有没有办法在我执行此操作时捕获测试运行的退出代码?
@cmd="php -d auto_prepend_file=auto_prepend_for_tests.php /data/tests/sdk/bin/phpunit.phar --configuration /data/tests/conf/database.xml
my_test.php"
open(IN, "-|", "strace -ff $pid -e trace=file @cmd 2>&1")
【问题讨论】: