Skip to content

Commit

Permalink
Fix cairo-test for corelib (#1158)
Browse files Browse the repository at this point in the history
  • Loading branch information
maciektr authored Mar 5, 2024
1 parent 5a0d0f5 commit 0c6f584
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions scarb/src/core/manifest/summary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ impl Summary {

if !self.no_core {
deps.push(&CORE_DEPENDENCY);
if self.target_kinds.contains(&TargetKind::TEST) {
deps.push(&TEST_PLUGIN_DEPENDENCY);
}
}
if self.target_kinds.contains(&TargetKind::TEST) {
deps.push(&TEST_PLUGIN_DEPENDENCY);
}

deps.into_iter()
Expand Down
16 changes: 8 additions & 8 deletions scarb/tests/metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ fn local_dependencies() {
assert_eq!(
packages_and_deps(meta),
BTreeMap::from_iter([
("core".to_string(), vec![]),
("core".to_string(), vec!["test_plugin".to_string()]),
("test_plugin".to_string(), vec![]),
(
"q".to_string(),
Expand Down Expand Up @@ -236,7 +236,7 @@ fn dev_dependencies() {
assert_eq!(
packages_and_deps(meta.clone()),
BTreeMap::from_iter([
("core".to_string(), vec![]),
("core".to_string(), vec!["test_plugin".to_string()]),
("test_plugin".to_string(), vec![]),
(
"x".to_string(),
Expand Down Expand Up @@ -302,7 +302,7 @@ fn dev_deps_are_not_propagated() {
assert_eq!(
packages_and_deps(metadata.clone()),
BTreeMap::from_iter([
("core".to_string(), vec![]),
("core".to_string(), vec!["test_plugin".to_string()]),
("test_plugin".to_string(), vec![]),
(
"x".to_string(),
Expand Down Expand Up @@ -566,7 +566,7 @@ fn workspace_simple() {
assert_eq!(
packages_and_deps(metadata),
BTreeMap::from_iter([
("core".to_string(), vec![]),
("core".to_string(), vec!["test_plugin".to_string()]),
("test_plugin".to_string(), vec![]),
(
"first".to_string(),
Expand Down Expand Up @@ -612,7 +612,7 @@ fn workspace_with_root() {
assert_eq!(
packages_and_deps(metadata),
BTreeMap::from_iter([
("core".to_string(), vec![]),
("core".to_string(), vec!["test_plugin".to_string()]),
(
"some_root".to_string(),
vec![
Expand Down Expand Up @@ -668,7 +668,7 @@ fn workspace_as_dep() {
packages_and_deps(metadata),
BTreeMap::from_iter([
("test_plugin".to_string(), vec![]),
("core".to_string(), vec![]),
("core".to_string(), vec!["test_plugin".to_string()]),
(
"first".to_string(),
vec!["core".to_string(), "test_plugin".to_string()]
Expand Down Expand Up @@ -711,7 +711,7 @@ fn workspace_as_dep() {
assert_eq!(
packages_and_deps(metadata),
BTreeMap::from_iter([
("core".to_string(), vec![]),
("core".to_string(), vec!["test_plugin".to_string()]),
("test_plugin".to_string(), vec![]),
(
"first".to_string(),
Expand Down Expand Up @@ -785,7 +785,7 @@ fn workspace_package_key_inheritance() {
assert_eq!(
packages_and_deps(metadata),
BTreeMap::from_iter([
("core".to_string(), vec![]),
("core".to_string(), vec!["test_plugin".to_string()]),
("test_plugin".to_string(), vec![]),
(
"first".to_string(),
Expand Down

0 comments on commit 0c6f584

Please sign in to comment.