-
Notifications
You must be signed in to change notification settings - Fork 9
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
failed test for snazzer-send-wrapper #33
Comments
Unfortunately, sstephenson/bats is great for running tests but not debugging them. My strategy originally was to add
Regarding travis, the real reason it isn't running the bats tests is because it requires root privileges to create and mount manipulate filesystems. I'm quite sure the containers in travis don't permit this sort of thing, at least they didn't last time I tried, admittedly a long time ago now... happy to be proven wrong. If I forked snazzer into a community group I help run then I could get a CI build VM running over there if that's interesting. |
Managed to get travis to work, see #34, hurray. Can't reproduce the test failure there, though. On the contrary, harschware/bats didn't work at all, it only produces the following output and then stalls forever for some reason:
No idea what's happening there, though, and what they could have done in comprasion to sstephenson/bats to cause this. 😞 |
Hrmm. Could you attach your /tmp/log here? |
Does your |
Forgot to mention, Just analysed, my version of Regarding the existence test, I'm not sure what's the most clean / compatible / robust way, other alternatives that came to my mind would be bash's integrated („There should be one-- and preferably only one --obvious way to do it.“ 😆 ) For testing, I replaced |
@Semoar can you reproduce this? |
Yup, I'm also running Arch Linux and get the same error (although on btrfs-progs 4.8.1) Additionally I have a failing test for
|
With the work from #43, I managed to get some output!
|
Okay, according to #43 (comment) @florianjacob's system uses bash for |
@Semoar should have bash as |
A dashism seems quite legit, this would explain why it's running fine on travis as well. 😆 |
Ugh, I'm seeing bash interpolating escape \ slightly differently to dash :( What on earth was I thinking when I wrote snazzer-send-wrapper... EDIT: SSH_ORIGINAL_COMMAND is getting extra slashes... or rather, dash was eating them... from the bats tests?! This is making me insane :) |
This is now a stack overflow question :) https://unix.stackexchange.com/questions/321422/why-does-dash-expand-differently-to-bash |
Alright, the fix will be to replace much of my current usage of Created koalaman/shellcheck#771 for shellcheck.net once we have a make test target for that |
Probably:
so exactly what we all were thinking. 😉 Jokes aside, wasting time on issues that turn out to be simple happens to all of us. 😆 |
When executing the new
make test
, the following test fails:I'm not sure what the problem is there, though.
Related: Did you try to run all tests and not only snazzer-prune-candidates via travis, maybe the beta image with Ubuntu 14.04 contains a new-enough btrfs for the tests to work?
The text was updated successfully, but these errors were encountered: