Skip to content

Commit

Permalink
Merge "Make our py2 func tests more explicitly py2"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and openstack-gerrit committed Nov 5, 2019
2 parents 36e2d74 + c512574 commit 23e1dba
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 28 deletions.
48 changes: 24 additions & 24 deletions .zuul.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
post-run: tools/playbooks/common/cover-post.yaml

- job:
name: swift-tox-func
name: swift-tox-func-py27
parent: swift-tox-base
description: |
Run functional tests for swift under cPython version 2.7.
Expand Down Expand Up @@ -145,12 +145,12 @@
tox_envlist: func-s3api-py3

- job:
name: swift-tox-func-centos-7
parent: swift-tox-func
name: swift-tox-func-py27-centos-7
parent: swift-tox-func-py27
nodeset: centos-7

- job:
name: swift-tox-func-encryption
name: swift-tox-func-encryption-py27
parent: swift-tox-base
description: |
Run functional tests for swift under cPython version 2.7.
Expand All @@ -162,12 +162,12 @@
tox_envlist: func-encryption

- job:
name: swift-tox-func-encryption-centos-7
parent: swift-tox-func-encryption
name: swift-tox-func-encryption-py27-centos-7
parent: swift-tox-func-encryption-py27
nodeset: centos-7

- job:
name: swift-tox-func-ec
name: swift-tox-func-ec-py27
parent: swift-tox-base
description: |
Run functional tests for swift under cPython version 2.7.
Expand All @@ -179,12 +179,12 @@
tox_envlist: func-ec

- job:
name: swift-tox-func-ec-centos-7
parent: swift-tox-func-ec
name: swift-tox-func-ec-py27-centos-7
parent: swift-tox-func-ec-py27
nodeset: centos-7

- job:
name: swift-tox-func-domain-remap-staticweb
name: swift-tox-func-domain-remap-staticweb-py27
parent: swift-tox-base
description: |
Run functional tests for swift under cPython version 2.7.
Expand All @@ -196,7 +196,7 @@
tox_envlist: func-domain-remap-staticweb

- job:
name: swift-tox-func-s3api
name: swift-tox-func-s3api-py27
parent: swift-tox-base
description: |
Run functional tests for swift under cPython version 2.7.
Expand Down Expand Up @@ -494,27 +494,27 @@
- ^test/(functional|probe)/.*$

# Functional tests
- swift-tox-func:
- swift-tox-func-py27:
irrelevant-files:
- ^(api-ref|doc|releasenotes)/.*$
- ^test/probe/.*$
- ^(.gitreview|.mailmap|AUTHORS|CHANGELOG)$
- swift-tox-func-encryption:
- swift-tox-func-encryption-py27:
irrelevant-files:
- ^(api-ref|doc|releasenotes)/.*$
- ^test/probe/.*$
- ^(.gitreview|.mailmap|AUTHORS|CHANGELOG)$
- swift-tox-func-domain-remap-staticweb:
- swift-tox-func-domain-remap-staticweb-py27:
irrelevant-files:
- ^(api-ref|doc|releasenotes)/.*$
- ^test/probe/.*$
- ^(.gitreview|.mailmap|AUTHORS|CHANGELOG)$
- swift-tox-func-ec:
- swift-tox-func-ec-py27:
irrelevant-files:
- ^(api-ref|doc|releasenotes)/.*$
- ^test/probe/.*$
- ^(.gitreview|.mailmap|AUTHORS|CHANGELOG)$
- swift-tox-func-s3api:
- swift-tox-func-s3api-py27:
irrelevant-files:
- ^(api-ref|doc|releasenotes)/.*$
- ^test/probe/.*$
Expand Down Expand Up @@ -618,11 +618,11 @@
- swift-tox-py27
- swift-tox-py36
- swift-tox-py37
- swift-tox-func
- swift-tox-func-encryption
- swift-tox-func-domain-remap-staticweb
- swift-tox-func-ec
- swift-tox-func-s3api
- swift-tox-func-py27
- swift-tox-func-encryption-py27
- swift-tox-func-domain-remap-staticweb-py27
- swift-tox-func-ec-py27
- swift-tox-func-s3api-py27
- swift-tox-func-py37
- swift-tox-func-encryption
- swift-tox-func-domain-remap-staticweb-py37
Expand Down Expand Up @@ -677,9 +677,9 @@
experimental:
jobs:
- swift-tox-py27-centos-7
- swift-tox-func-centos-7
- swift-tox-func-encryption-centos-7
- swift-tox-func-ec-centos-7
- swift-tox-func-py27-centos-7
- swift-tox-func-encryption-py27-centos-7
- swift-tox-func-ec-py27-centos-7
- swift-multinode-rolling-upgrade-queens
- swift-multinode-rolling-upgrade-rocky
- swift-multinode-rolling-upgrade-stein
Expand Down
12 changes: 8 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@ commands =
basepython = python3
commands = {[testenv:pep8]commands}

[testenv:func]
basepython = python2.7
commands = ./.functests {posargs}

[testenv:func-py3]
basepython = python3
commands = ./.functests {posargs}
Expand Down Expand Up @@ -72,22 +68,30 @@ commands = ./.functests {posargs}
setenv = SWIFT_TEST_IN_PROCESS=1
SWIFT_TEST_IN_PROCESS_CONF_LOADER=domain_remap_staticweb

[testenv:func]
basepython = python2.7
commands = ./.functests {posargs}

[testenv:func-encryption]
basepython = python2.7
commands = ./.functests {posargs}
setenv = SWIFT_TEST_IN_PROCESS=1
SWIFT_TEST_IN_PROCESS_CONF_LOADER=encryption

[testenv:func-domain-remap-staticweb]
basepython = python2.7
commands = ./.functests {posargs}
setenv = SWIFT_TEST_IN_PROCESS=1
SWIFT_TEST_IN_PROCESS_CONF_LOADER=domain_remap_staticweb

[testenv:func-ec]
basepython = python2.7
commands = ./.functests {posargs}
setenv = SWIFT_TEST_IN_PROCESS=1
SWIFT_TEST_IN_PROCESS_CONF_LOADER=ec

[testenv:func-s3api]
basepython = python2.7
commands = ./.functests {posargs}
setenv = SWIFT_TEST_IN_PROCESS=1
SWIFT_TEST_IN_PROCESS_CONF_LOADER=s3api
Expand Down

0 comments on commit 23e1dba

Please sign in to comment.