Skip to content

Commit

Permalink
Only test each set of options once, check wifi&&ble
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Feb 10, 2025
1 parent 032d70b commit fca0675
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions xtask/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,15 +142,13 @@ fn options_for_chip(chip: Chip, all_combinations: bool) -> Vec<Vec<String>> {
options.extend(available_options[j].clone());
}
}
options.sort();
result.push(options);
}
// Filter all the items that contains wifi and ble
let result = result
.into_iter()
.filter(|opts| {
!opts.contains(&"wifi".to_string()) || !opts.contains(&"ble".to_string())
})
.collect::<Vec<_>>();

result.sort();
result.dedup();

return result;
}
}
Expand Down

0 comments on commit fca0675

Please sign in to comment.