Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rerun.txt #20

Closed
crystalin opened this issue Oct 14, 2011 · 3 comments
Closed

rerun.txt #20

crystalin opened this issue Oct 14, 2011 · 3 comments

Comments

@crystalin
Copy link

Hi. I'm sharing folders between windows and linux and when using guard-cucumber I get this error:

ERROR: Guard::Cucumber failed to achieve its , exception was:
Errno::ETXTBSY: Text file busy - rerun.txt
.../guard-cucumber-0.7.2/lib/guard/cucumber.rb:114:in delete
.../guard-cucumber-0.7.2/lib/guard/cucumber.rb:114:in read_failed_features
.../guard-cucumber-0.7.2/lib/guard/cucumber.rb:60:in run_all
...

Guard::Cucumber has just been fired
(running a rm rerun.txt is working fine)

It can be avoided using :keep_failed => false, but I'd be cool if we can fix it.

@netzpirat
Copy link
Owner

I think the issue was that the file was not properly closed. I switched to a block for reading rerun.txt, so that the file automatically gets properly closed when the block is exited.

This fix is in released in 0.7.3.

@crystalin
Copy link
Author

It is working with the 0.7.3, thanks

@netzpirat
Copy link
Owner

Glad to hear! Thanks for the feedback.

hron pushed a commit to hron/guard-cucumber that referenced this issue Nov 10, 2015
prevent notifier from crashing in tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants