Skip to content

Commit

Permalink
Use file with content for us to operate correctly in adjusted branch …
Browse files Browse the repository at this point in the history
…mode
  • Loading branch information
yarikoptic committed Sep 6, 2024
1 parent e533f87 commit 44837f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion datalad/core/local/tests/test_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,11 @@ def test_run_from_subds_gh3551(path=None):
def test_run_empty_output(path=None):
ds = Dataset(path).create(force=True)
ds.save()
# TODO: replace "echo ..." with "cd ." after git-annex fixed to handle empty files
# https://git-annex.branchable.com/bugs/git_diff_in_adj_unlock_reports_diff_for_empty_file/
with chpwd(ds.path):
assert_in_results(
run("cd .> output_empty/f",
run("echo content> output_empty/f",
outputs=["output_file", "output_empty", "output_withfile"],
return_type="list", result_filter=None, result_xfm=None),
action="save",
Expand Down

0 comments on commit 44837f2

Please sign in to comment.