![]() case " $(echo $py2commands) " in *\ $command\ *) run_py python2.7 *) run_py python3 esac # Run Python 3 for everything else. ''':' py2commands=" android awsy-test check-spidermonkey cramtest crashtest devtools-css-db firefox-ui-functional geckodriver geckodriver-test hazards jsapi-tests jsshell-bench marionette-test jstestbrowser jstests mochitest mozharness prettier-format raptor raptor-test reftest talos-test taskcluster-load-image telemetry-tests-client test tps-build visualmetrics web-platform-tests web-platform-tests-update wpt wpt-manifest-update wpt-metadata-merge wpt-metadata-summary wpt-serve wpt-test-paths wpt-unittest wpt-update " run_py() esac # Check for the mach subcommand in the Python 2 commands list and run it # with the correct interpreter. This pattern is valid # shell because `''':'`, `':'` and `:` are all equivalent, and `:` is a no-op. # Embeds a shell script inside a Python triple quote. # The beginning of this script is both valid POSIX shell and valid Python, # such that the script starts with the shell and is reexecuted with # the right Python. ![]() ![]() ![]() ![]() If a copy of the MPL was not distributed with this # file, You can obtain one at. #!/bin/sh # This Source Code Form is subject to the terms of the Mozilla Public # License, v. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |