google / cro3

Abstraction Layer of ChromiumOS development
https://google.github.io/cro3/
BSD 3-Clause "New" or "Revised" License
36 stars 12 forks source link

`cro3 dut list --add` eats input stream #265

Open mhiramat opened 1 month ago

mhiramat commented 1 month ago

When I tried to inport DUT address list from stdin like;

cat duts.txt | while read addr; do cro3 dut list --add $addr; done

This command exited unexpectedly after inported the 1st entry. I could fixed it by adding < /dev/null to the cro3 command.

cat duts.txt | while read addr; do cro3 dut list --add $addr < /dev/null ; done

But this means cro3 dut list --add ate all input from standard input.

mhiramat commented 1 month ago

Make this P2 because it has a mitigation and inporting dut list should be supported directly. But eating up input stream is a problem.