File: irods_consortium_continuous_integration_test_module.py

package info (click to toggle)
python-irodsclient 3.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,352 kB
  • sloc: python: 16,650; xml: 525; sh: 104; awk: 5; sql: 3; makefile: 3
file content (26 lines) | stat: -rw-r--r-- 800 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import json
import sys


def run(CI):

    final_config = CI.store_config(
        {
            "yaml_substitutions": {  # -> written to ".env"
                "client_python_version": "3",
                "client_os_generic": "ubuntu",
                "client_os_image": "ubuntu:18.04",
                "python_rule_engine_installed": "y",
            },
            "container_environments": {
                "client-runner": {  # -> written to "client-runner.env"
                    "TESTS_TO_RUN": ""  # run test subset, e.g. "irods.test.data_obj_test"
                }
            },
        }
    )

    print("----------\nconfig after CI modify pass\n----------", file=sys.stderr)
    print(json.dumps(final_config, indent=4), file=sys.stderr)

    return CI.run_and_wait_on_client_exit()