зеркало из https://github.com/mozilla/kitsune.git
Add support for PYTEST_PROCESSES
This commit is contained in:
Родитель
0c10345834
Коммит
bd5b8ab17c
|
@ -48,6 +48,7 @@ def writeCapabilities(desiredCapabilities) {
|
||||||
* @param environment test environment to run
|
* @param environment test environment to run
|
||||||
*/
|
*/
|
||||||
def runTox(environment) {
|
def runTox(environment) {
|
||||||
|
def processes = env.PYTEST_PROCESSES ?: 'auto'
|
||||||
try {
|
try {
|
||||||
wrap([$class: 'AnsiColorBuildWrapper']) {
|
wrap([$class: 'AnsiColorBuildWrapper']) {
|
||||||
withCredentials([[
|
withCredentials([[
|
||||||
|
@ -55,6 +56,7 @@ def runTox(environment) {
|
||||||
credentialsId: 'SAUCELABS_API_KEY',
|
credentialsId: 'SAUCELABS_API_KEY',
|
||||||
variable: 'SAUCELABS_API_KEY']]) {
|
variable: 'SAUCELABS_API_KEY']]) {
|
||||||
withEnv(["PYTEST_ADDOPTS=${PYTEST_ADDOPTS} " +
|
withEnv(["PYTEST_ADDOPTS=${PYTEST_ADDOPTS} " +
|
||||||
|
"-n=${processes} " +
|
||||||
"--base-url=${PYTEST_BASE_URL} " +
|
"--base-url=${PYTEST_BASE_URL} " +
|
||||||
"--driver=SauceLabs " +
|
"--driver=SauceLabs " +
|
||||||
"--variables=capabilities.json " +
|
"--variables=capabilities.json " +
|
||||||
|
|
Загрузка…
Ссылка в новой задаче