-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
mfs: remove sort
from ListNames()
#5219
Conversation
License: MIT Signed-off-by: Lucas Molas <[email protected]>
Checking if this upsets any test... |
It doesn't, the sort can be added at the |
Add test. |
Imitate Unix `ls` command, sort by default; disable with `-U` flag. License: MIT Signed-off-by: Lucas Molas <[email protected]>
test_expect_success "unsorted listing works $EXTRA" ' | ||
ipfs files ls -U /foo > list_out && | ||
sort list_exp_raw > sort_list_not_exp && | ||
! test_cmp sort_list_not_exp list_out |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this the sharness
way to test that the inputs should be different?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes... Unfortunately, this'll be a bit brittle. Unfortunately, I can't think of a better way.
sort
from ListNames()
sort
from ListNames()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
@schomatis I assume this is ready (and no longer "do not merge"). |
Yes, sorry, forgot to change that, thanks! (I use too many anti-merge precautionary measures :)) |
Fixes #5181.