Skip to content

test(rm): add tests to prevent a future regression#403

Merged
nfischer merged 2 commits intomasterfrom
test-rm-f
Mar 24, 2016
Merged

test(rm): add tests to prevent a future regression#403
nfischer merged 2 commits intomasterfrom
test-rm-f

Conversation

@nfischer
Copy link
Copy Markdown
Member

Fixes #332

This is pretty straightforward. The issue existed on v0.6, but not on master. This just adds the tests to make sure we don't run into this issue again.

In case you're wondering, the "only -f" case is indeed bash-compatible. rm -f real_dir/ is an error, rm -f fake_dir/ is not (assuming that fake_dir/ does not exist, of course).

Feel free to adjust the tests as necessary. I checked them against bash on Linux, and this is compatible with that.

@nfischer nfischer added medium priority test bash compat Compatibility issues with bash or POSIX behavior labels Mar 20, 2016
@nfischer nfischer added this to the v0.7.0 milestone Mar 20, 2016
@ariporad
Copy link
Copy Markdown
Contributor

LGTM!

@nfischer
Copy link
Copy Markdown
Member Author

LGTM. Merging since this is fairly trivial

@nfischer nfischer merged commit 55d473c into master Mar 24, 2016
@nfischer nfischer deleted the test-rm-f branch March 24, 2016 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bash compat Compatibility issues with bash or POSIX behavior medium priority test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants