Don't use tty presence to disable file discovery.
The acloud multi-stage launch runs launch_cvd without a tty, so using
isatty(stdin) is not a good signal on whether to run file discovery.
Test: Run launch_cvd without a tty.
Bug: 142768362
Change-Id: I9cc342e632f4f84002b7d029728a7577a40f9041
diff --git a/host/commands/launch/launch_cvd.cc b/host/commands/launch/launch_cvd.cc
index 01d6799..9d3b108 100644
--- a/host/commands/launch/launch_cvd.cc
+++ b/host/commands/launch/launch_cvd.cc
@@ -37,7 +37,7 @@
* Controllable with a flag for extraordinary scenarios such as running from a
* daemon which closes its own stdin.
*/
-DEFINE_bool(run_file_discovery, (bool) isatty(0),
+DEFINE_bool(run_file_discovery, true,
"Whether to run file discovery or get input files from stdin.");
namespace {