Skip to content

Commit

Permalink
tests: Move build/macros to core
Browse files Browse the repository at this point in the history
Summary: ^

Reviewed By: IanChilds

Differential Revision: D63972132

fbshipit-source-id: d5f0b38981cecee417c255ea89b5cf34ef42adf2
  • Loading branch information
JakobDegen authored and facebook-github-bot committed Oct 7, 2024
1 parent 026ea9c commit fb937af
Show file tree
Hide file tree
Showing 16 changed files with 3 additions and 3 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from buck2.tests.e2e_util.buck_workspace import buck_test


@buck_test(inplace=False)
@buck_test()
async def test_run_with_source_macros(buck: Buck) -> None:
sep = "\\" if platform.system() == "Windows" else "/"
result = await buck.run("//source:echo_file")
Expand All @@ -31,7 +31,7 @@ async def test_run_with_source_macros(buck: Buck) -> None:
assert result.stdout == "bar file\n"


@buck_test(inplace=False)
@buck_test()
async def test_no_dep_in_source(buck: Buck) -> None:
await expect_failure(
buck.build("//dep_as_source:uses_dep"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def _find_file(dir, name: str):
return f


@buck_test(inplace=False)
@buck_test()
async def test_xxx(buck: Buck) -> None:
result = await buck.build("//:test_rule")
out = result.get_build_report().output_for_target("root//:test_rule")
Expand Down

0 comments on commit fb937af

Please sign in to comment.