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

test/system: Simplify code #1412

Conversation

debarshiray
Copy link
Member

There's no need to run these cat(1) and gdbus(1) invocations through a shell (ie., 'sh -c'), because there's no shell expansion that needs to be performed.

These are unlike cases where shell expansion does need to be performed. eg., 'readlink /proc/$$/ns/user', where the $$ needs to be expanded.

Fallout from 58134f8 and a0514cb

debarshiray added a commit to debarshiray/toolbox that referenced this pull request Nov 30, 2023
There's no need to run these cat(1) and gdbus(1) invocations through a
shell (ie., 'sh -c'), because there's no shell expansion that needs to
be performed.

These are unlike cases where shell expansion does need to be performed.
eg., 'readlink /proc/$$/ns/user', where the $$ needs to be expanded.

Fallout from 58134f8 and
a0514cb

containers#1412
@debarshiray debarshiray force-pushed the wip/rishi/test-system-user-dbus-simplify-remove-sh-c branch from e71c057 to a50cc17 Compare November 30, 2023 15:58
There's no need to run these cat(1) and gdbus(1) invocations through a
shell (ie., 'sh -c'), because there's no shell expansion that needs to
be performed.

These are unlike cases where shell expansion does need to be performed.
eg., 'readlink /proc/$$/ns/user', where the $$ needs to be expanded.

Fallout from 58134f8 and
a0514cb

containers#1412
Copy link

Build succeeded.
https://softwarefactory-project.io/zuul/t/local/buildset/9a4b45f65b2e49689319f79d27cd97d3

✔️ unit-test SUCCESS in 9m 08s
✔️ unit-test-migration-path-for-coreos-toolbox SUCCESS in 3m 39s
✔️ unit-test-restricted SUCCESS in 8m 22s
✔️ system-test-fedora-rawhide SUCCESS in 32m 28s
✔️ system-test-fedora-39 SUCCESS in 31m 04s
✔️ system-test-fedora-38 SUCCESS in 31m 07s
✔️ system-test-fedora-37 SUCCESS in 31m 12s

@debarshiray debarshiray force-pushed the wip/rishi/test-system-user-dbus-simplify-remove-sh-c branch from a50cc17 to 532e846 Compare November 30, 2023 16:32
The arguments for the D-Bus method are accepted separately by gdbus(1)
without any options.  Therefore, they shouldn't be indented by another
additional level.

containers#1412
Copy link

Build succeeded.
https://softwarefactory-project.io/zuul/t/local/buildset/ab16d6b314104ea28c196eccc3f85164

✔️ unit-test SUCCESS in 9m 11s
✔️ unit-test-migration-path-for-coreos-toolbox SUCCESS in 4m 07s
✔️ unit-test-restricted SUCCESS in 7m 55s
✔️ system-test-fedora-rawhide SUCCESS in 34m 30s
✔️ system-test-fedora-39 SUCCESS in 34m 16s
✔️ system-test-fedora-38 SUCCESS in 33m 31s
✔️ system-test-fedora-37 SUCCESS in 31m 04s

Copy link

Build succeeded.
https://softwarefactory-project.io/zuul/t/local/buildset/9a1f69783dfa4191937c5603e96a26c9

✔️ unit-test SUCCESS in 9m 14s
✔️ unit-test-migration-path-for-coreos-toolbox SUCCESS in 3m 31s
✔️ unit-test-restricted SUCCESS in 8m 16s
✔️ system-test-fedora-rawhide SUCCESS in 36m 14s
✔️ system-test-fedora-39 SUCCESS in 34m 40s
✔️ system-test-fedora-38 SUCCESS in 35m 05s
✔️ system-test-fedora-37 SUCCESS in 34m 58s

@debarshiray debarshiray merged commit bc75133 into containers:main Nov 30, 2023
@debarshiray debarshiray deleted the wip/rishi/test-system-user-dbus-simplify-remove-sh-c branch November 30, 2023 18:06
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.

1 participant