Files
swift-mirror/test/remote-run/env.test-sh
Saleem Abdulrasool 2b8d57c2e3 test: sort the environment for remote-run
With Python 3, there have been some sorting inconsistencies.  Always
sort the items to allow for the lit test to reliably match the output.
2020-07-28 15:30:55 -07:00

9 lines
412 B
Plaintext

REQUIRES: shell
RUN: env REMOTE_RUN_CHILD_FOO=foo REMOTE_RUN_CHILD_BAR=bar %debug-remote-run sh -c 'echo ":${FOO}:" ":${BAR}:"' | %FileCheck %s
RUN: env REMOTE_RUN_CHILD_FOO=foo REMOTE_RUN_CHILD_BAR=bar %debug-remote-run -v sh -c 'echo ":${FOO}:" ":${BAR}:"' 2>&1 >/dev/null | %FileCheck -check-prefix VERBOSE %s
CHECK: {{^:foo: :bar:$}}
VERBOSE: /usr/bin/env BAR=bar FOO=foo sh -c echo ":${FOO}:" ":${BAR}:"