Skip to content

Commit

Permalink
Include package in deps() and rdeps()
Browse files Browse the repository at this point in the history
  • Loading branch information
Guiguiprim committed Apr 6, 2022
1 parent dea105b commit 346a485
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
6 changes: 0 additions & 6 deletions nextest-filtering/src/compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ fn dependencies_packages(
for id1 in packages {
for p2 in all_packages {
let id2 = p2.id();
if id1 == id2 {
continue;
}
if cache.depends_on(id1, id2).unwrap_or(false) {
set.insert(id2.clone());
}
Expand All @@ -67,9 +64,6 @@ fn rdependencies_packages(
for id1 in packages {
for p2 in all_packages {
let id2 = p2.id();
if id1 == id2 {
continue;
}
if cache.depends_on(id2, id1).unwrap_or(false) {
set.insert(id2.clone());
}
Expand Down
4 changes: 2 additions & 2 deletions nextest-filtering/tests/match.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ fn test_expr_deps() {
assert!(expr.includes(&mk_pid('a'), "test_something"));
assert!(expr.includes(&mk_pid('b'), "test_something"));
assert!(expr.includes(&mk_pid('c'), "test_something"));
assert!(!expr.includes(&mk_pid('d'), "test_something"));
assert!(expr.includes(&mk_pid('d'), "test_something"));
assert!(!expr.includes(&mk_pid('e'), "test_something"));
assert!(!expr.includes(&mk_pid('f'), "test_something"));
assert!(!expr.includes(&mk_pid('g'), "test_something"));
Expand All @@ -89,7 +89,7 @@ fn test_expr_rdeps() {
assert!(!expr.includes(&mk_pid('a'), "test_something"));
assert!(!expr.includes(&mk_pid('b'), "test_something"));
assert!(!expr.includes(&mk_pid('c'), "test_something"));
assert!(!expr.includes(&mk_pid('d'), "test_something"));
assert!(expr.includes(&mk_pid('d'), "test_something"));
assert!(expr.includes(&mk_pid('e'), "test_something"));
assert!(expr.includes(&mk_pid('f'), "test_something"));
assert!(expr.includes(&mk_pid('g'), "test_something"));
Expand Down
4 changes: 2 additions & 2 deletions site/src/book/filtering-expression.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ Basic sets:
- `all()`: include everything
- `test(name-matcher)`: include all tests matching `name-matcher`
- `package(name-matcher)`: include all tests in packages matching `name-matcher`
- `deps(name-matcher)`: include all tests in packages depended by packages matching `name-matcher`
- `rdeps(name-matcher)`: include all tests in packages depending on packages matching `name-matcher`
- `deps(name-matcher)`: include all tests in packages depended by packages matching `name-matcher` and include all tests in packages matching `name-matcher`
- `rdeps(name-matcher)`: include all tests in packages depending on packages matching `name-matcher` and include all tests in packages matching `name-matcher`
- `none()`: include nothing

Name matcher:
Expand Down

0 comments on commit 346a485

Please sign in to comment.