Skip to content

fix(tests): quote the paths in runE2ETestPipeline's g++ command - #226

Open
MatthewReed303 wants to merge 1 commit into
Autonomy-Logic:developmentfrom
MatthewReed303:fix/test-helpers-quote-paths
Open

fix(tests): quote the paths in runE2ETestPipeline's g++ command#226
MatthewReed303 wants to merge 1 commit into
Autonomy-Logic:developmentfrom
MatthewReed303:fix/test-helpers-quote-paths

Conversation

@MatthewReed303

Copy link
Copy Markdown
  • runE2ETestPipeline built its g++ command by join(' ')-ing an argv array into
    a shell string and quoted nothing, so any repo path containing a space
    word-split the -I flags and backgrounded the command at an &.
  • 115 tests across 7 integration files failed for this reason alone on a checkout
    under such a path.
  • Quoted in the same style the neighbouring call sites in this file already use
    (:93, :156, and oscat-gpp-compile.test.ts:185-193). No behaviour change
    where the path has no spaces.

The argv array was joined into a shell string with nothing quoted, so a
repo path containing a space word-split the -I flags and 115 tests failed.
Quoted in the style the neighbouring call sites already use.
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