Skip to content

nice: adjust a test to make it pass - #3391

Closed
sylvestre wants to merge 1 commit into
uutils:mainfrom
sylvestre:nice
Closed

sylvestre wants to merge 1 commit into
uutils:mainfrom
sylvestre:nice

Conversation

@sylvestre

Copy link
Copy Markdown
Contributor

No description provided.

@sylvestre
sylvestre requested a review from tertsdiepraam April 12, 2022 20:52
@sylvestre

Copy link
Copy Markdown
Contributor Author

Congrats! The gnu test tests/misc/nice-fail is no longer failing!

@tertsdiepraam

Copy link
Copy Markdown
Collaborator

This one might be more important to actually fix that some of the others, because the current implementation makes it impossible to distinguish between the exit codes of nice and of the command it runs. From the docs:

0 if no COMMAND is specified and the niceness is output
125 if ‘nice’ itself fails
126 if COMMAND is found but cannot be invoked
127 if COMMAND cannot be found
the exit status of COMMAND otherwise

I'll see if I can get come up with an ergonomic workaround for that clap issue next week.

@sylvestre

Copy link
Copy Markdown
Contributor Author

Sure thanks :)

@sylvestre

Copy link
Copy Markdown
Contributor Author

@tertsdiepraam have you been able to investigate? thanks

@tertsdiepraam

Copy link
Copy Markdown
Collaborator

Not yet, I'm not sure when I'll get to it, but hopefully soon :)

@tertsdiepraam

Copy link
Copy Markdown
Collaborator

As soon as I posted that reply, I couldn't resist working on it immediately :) #3457

@tertsdiepraam tertsdiepraam mentioned this pull request May 1, 2022
@tertsdiepraam

Copy link
Copy Markdown
Collaborator

We can close this one now right? The test should be passing now or is there something I missed in the exit code PR?

@sylvestre sylvestre closed this May 11, 2022
@sylvestre

Copy link
Copy Markdown
Contributor Author

yeah, thanks

@sylvestre
sylvestre deleted the nice branch May 11, 2022 11:46
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

Successfully merging this pull request may close these issues.

2 participants