Skip to content

Commit

Permalink
Make the test CellInfo specify the fbcode/prelude defaults
Browse files Browse the repository at this point in the history
Summary: Match the config that our tests currently rely on.

Reviewed By: aniketmathur

Differential Revision: D57542267

fbshipit-source-id: 318d330700535348c5ad338244915350dc97e406
  • Loading branch information
ndmitchell authored and facebook-github-bot committed May 29, 2024
1 parent 4426334 commit 0a3b19f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion btd/src/buck/cells.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,15 @@ impl CellInfo {
"prelude": "/Users/ndmitchell/repo/fbcode/prelude",
}
);
CellInfo::parse(&value.to_string()).unwrap()
let mut res = CellInfo::parse(&value.to_string()).unwrap();
let config = serde_json::json!(
{
"fbcode//buildfile.name":"TARGETS",
"prelude//buildfile.name":"TARGETS",
}
);
res.parse_config_data(&config.to_string()).unwrap();
res
}

pub fn new(file: &Path) -> anyhow::Result<Self> {
Expand Down

0 comments on commit 0a3b19f

Please sign in to comment.