google / cro3

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

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

Open mhiramat opened 3 months ago

mhiramat commented 3 months 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 3 months 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.