We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
CTS 存在兩種 mode,第一種為大家熟知的 Interactive mode,即執行 ./cts-tradefed 之後會進入的 CTS shell,並等待使用者輸入指令。
./cts-tradefed
另一種則為 Non-interactive mode,即直接將欲執行的任務接在 ./cts-tradefed 之後,例如:./cts-tradefed run cts --plan CTS。
./cts-tradefed run cts --plan CTS
不幸的是,Non-interactive mode 雖然可以正常執行,但任務完成後,仍然不會 自動離開 CTS shell,導致很難在 Shellscript 裡頭繼續進行其他的操作。
解決方法是打上 Issue 24267 的第一個回覆中的 patch,重新編好 CTS 後, 並在執行 CTS 時使用下述指令即可:
echo | ./cts-tradefed run cts --plan CTS