Skip to content

test/system: Simplify capturing standard error from command substitution#1821

Merged
debarshiray merged 3 commits into
containers:mainfrom
debarshiray:wip/rishi/test-system-libs-drop-double-subshell-for-command-substitution-stderr
Jul 10, 2026
Merged

test/system: Simplify capturing standard error from command substitution#1821
debarshiray merged 3 commits into
containers:mainfrom
debarshiray:wip/rishi/test-system-libs-drop-double-subshell-for-command-substitution-stderr

Conversation

@debarshiray

Copy link
Copy Markdown
Member

This removes the nested subshell and saves spawning an extra process to achieve the exact same result.

As suggested by Gemini Code Assist.

Fallout from 61e2c97 and 2e7ba83

This removes the nested subshell and saves spawning an extra process to
achieve the exact same result.

As suggested by Gemini Code Assist.

Fallout from 61e2c97 and
2e7ba83

containers#1821
@debarshiray debarshiray force-pushed the wip/rishi/test-system-libs-drop-double-subshell-for-command-substitution-stderr branch from 90a9af6 to b9b6d0c Compare July 9, 2026 21:18

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request simplifies the command substitution in test/system/libs/helpers.bash by removing an unnecessary subshell and correcting the redirection order to properly capture stderr while discarding stdout. There are no review comments, so no additional feedback is provided.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@debarshiray debarshiray merged commit 8b85b9a into containers:main Jul 10, 2026
2 of 3 checks passed
@debarshiray debarshiray deleted the wip/rishi/test-system-libs-drop-double-subshell-for-command-substitution-stderr branch July 10, 2026 13:26
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