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

validation: run CLI with correct argument order #600

Merged
merged 1 commit into from Mar 12, 2018

Conversation

alban
Copy link
Contributor

@alban alban commented Mar 9, 2018

The OCI Runtime Command Line Interface 1 specifies the order of the
arguments:

$ funC [global-options] <COMMAND> [command-specific-options] <command-specific-arguments>

runc 2 is flexible whether command-specific-options is before or
after command-specific-arguments. But crun 3 is not, making the
tests fail. Since the CLI spec only specifies one order, the validation
tests should respect that order.

Signed-off-by: Alban Crequy alban@kinvolk.io


/cc @giuseppe

The OCI Runtime Command Line Interface [1][1] specifies the order of the
arguments:

```
$ funC [global-options] <COMMAND> [command-specific-options] <command-specific-arguments>
```

runc [2][2] is flexible whether command-specific-options is before or
after command-specific-arguments. But crun [3][3] is not, making the
tests fail. Since the CLI spec only specifies one order, the validation
tests should respect that order.

[1]: https://github.com/opencontainers/runtime-tools/blob/master/docs/command-line-interface.md#global-usage
[2]: https://github.com/opencontainers/runc
[3]: https://github.com/giuseppe/crun

Signed-off-by: Alban Crequy <alban@kinvolk.io>
@zhouhao3
Copy link

zhouhao3 commented Mar 12, 2018

LGTM

Approved with PullApprove

@zhouhao3 zhouhao3 merged commit cb96426 into opencontainers:master Mar 12, 2018
@alban alban deleted the alban/cli-order branch March 12, 2018 10:16
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.

None yet

3 participants