Disable --test-beacons flag by default on Cuttlefish
- --test-beacons flag is set explicitly on pts-bot test
Bug: 306724353
Test: m netsimd
Change-Id: Ife71c8bb220151dd0b747b5a4eb1f7e1327d88a6
diff --git a/rust/daemon/src/rust_main.rs b/rust/daemon/src/rust_main.rs
index 538abc2..6893d5e 100644
--- a/rust/daemon/src/rust_main.rs
+++ b/rust/daemon/src/rust_main.rs
@@ -220,12 +220,9 @@
echip::bluetooth::bluetooth_start(&config.bluetooth, instance_num, args.disable_address_reuse);
echip::wifi::wifi_start(&config.wifi);
- // Maybe create test beacons, default true for cuttlefish
- // TODO: remove default for cuttlefish by adding flag to tests
if match (args.test_beacons, args.no_test_beacons) {
+ (false, _) => false,
(true, false) => true,
- (false, true) => false,
- (false, false) => cfg!(feature = "cuttlefish"),
(true, true) => panic!("unexpected flag combination"),
} {
new_test_beacon(1, 1000);