Skip to content

fix(cram): remove cram file after it is read#5042

Merged
rgrinberg merged 1 commit intomainfrom
ps/rr/fix_cram___remove_cram_file_after_it_is_read
Nov 4, 2021
Merged

fix(cram): remove cram file after it is read#5042
rgrinberg merged 1 commit intomainfrom
ps/rr/fix_cram___remove_cram_file_after_it_is_read

Conversation

@rgrinberg
Copy link
Copy Markdown
Member

tests shouldn't be able to observe the test files

Fix #4776

@rgrinberg rgrinberg added the cram Related to the cram test execution in Dune label Oct 21, 2021
@rgrinberg rgrinberg added this to the 3.0 milestone Oct 21, 2021
@rgrinberg rgrinberg requested a review from a user October 21, 2021 21:11
@rgrinberg
Copy link
Copy Markdown
Member Author

Hmm, this does not work quite as expected. It makes the diff fail unfortunately. We should run teh diff from outside the sandbox I suppose?

@rgrinberg rgrinberg force-pushed the ps/rr/fix_cram___remove_cram_file_after_it_is_read branch from 00fbde0 to 0ceee79 Compare November 4, 2021 04:25
@rgrinberg
Copy link
Copy Markdown
Member Author

@jeremiedimino I modified this to restore the test file if there's a diff. Seems to work fine.

@ghost
Copy link
Copy Markdown

ghost commented Nov 4, 2021

Cool

Tests shouldn't be able to observe the test files. However, we must
restore the file if we observe a diff.

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>

ps-id: 9962A972-82F0-4FB5-A8C9-D9B91083F09C
@rgrinberg rgrinberg force-pushed the ps/rr/fix_cram___remove_cram_file_after_it_is_read branch from e02d1f3 to 678db88 Compare November 4, 2021 13:16
Copy link
Copy Markdown

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@rgrinberg
Copy link
Copy Markdown
Member Author

Fixed #4777

@rgrinberg rgrinberg deleted the ps/rr/fix_cram___remove_cram_file_after_it_is_read branch November 4, 2021 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cram Related to the cram test execution in Dune

Projects

None yet

Development

Successfully merging this pull request may close these issues.

runtest in tests behave badly when using dune lang 3.0

1 participant