Fix src/tests/build.sh argument processing (#81836)
authorSven Boemer <sbomer@gmail.com>
Thu, 9 Feb 2023 00:12:10 +0000 (16:12 -0800)
committerGitHub <noreply@github.com>
Thu, 9 Feb 2023 00:12:10 +0000 (16:12 -0800)
commit232fbcea7f56d4e23fa5af7a0a490f59195dc5f4
treefd9f4ae92f14965f30dae2cdd2091b45b8d43edb
parentad52afd27433d50b932708276fe4a3afbe7481cc
Fix src/tests/build.sh argument processing (#81836)

The logic to process test filter args isn't working correctly
because the `shift` happens inside a sourced script, and doesn't
actually shift the outer arguments. The right way to do this is
via `__ShiftArgs`.

Without this fix, `tree nativeaot` was working because
`nativeaot` happened to be a supported argument as well. With the
fix, other test subtrees work as expected.
src/tests/build.sh