public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
blob b62864f607b9e2b8f62283a742e0f85be1240057 1135 bytes (raw)

 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
 
#!/usr/bin/env python3

import os
import sys


def check_avocado_version():
    minimum_version = 106.0

    def error_out():
        print(
            f"Avocado version {minimum_version} or later is required.\n"
            f"You may install it with: \n"
            f"   python3 -m pip install avocado-framework",
            file=sys.stderr,
        )
        sys.exit(1)

    try:
        from avocado import VERSION

        if (float(VERSION)) < minimum_version:
            error_out()
    except ImportError:
        error_out()


check_avocado_version()
from avocado.core.job import Job
from avocado.core.suite import TestSuite


def main():
    repo_root_path = os.path.abspath(
        os.path.dirname(os.path.dirname(__file__))
    )

    suitename = sys.argv[1]
    references = [os.path.join(repo_root_path, 'test', x) for x in sys.argv[2:]]

    config = {
        "resolver.references": references,
        "runner.identifier_format": "{args}",
    }
    suite = TestSuite.from_config(config, name=suitename)
    with Job(config, [suite]) as j:
        return j.run()


if __name__ == "__main__":
    sys.exit(main())

debug log:

solving b62864f6 ...
found b62864f6 in https://archives.passt.top/passt-dev/20240805123701.1720730-8-david@gibson.dropbear.id.au/
found 26a226ce in https://archives.passt.top/passt-dev/20240805123701.1720730-7-david@gibson.dropbear.id.au/
found d518b9ec in https://archives.passt.top/passt-dev/20240805123701.1720730-6-david@gibson.dropbear.id.au/
found 19a94a8f in https://archives.passt.top/passt-dev/20240805123701.1720730-5-david@gibson.dropbear.id.au/
found 37db17c3 in https://archives.passt.top/passt-dev/20240719065907.3539211-2-david@gibson.dropbear.id.au/ ||
	https://archives.passt.top/passt-dev/20240826020942.545155-2-david@gibson.dropbear.id.au/ ||
	https://archives.passt.top/passt-dev/20240805123701.1720730-4-david@gibson.dropbear.id.au/

applying [1/5] https://archives.passt.top/passt-dev/20240719065907.3539211-2-david@gibson.dropbear.id.au/
diff --git a/test/run_avocado b/test/run_avocado
new file mode 100755
index 00000000..37db17c3

Checking patch test/run_avocado...
Applied patch test/run_avocado cleanly.

skipping https://archives.passt.top/passt-dev/20240826020942.545155-2-david@gibson.dropbear.id.au/ for 37db17c3
skipping https://archives.passt.top/passt-dev/20240805123701.1720730-4-david@gibson.dropbear.id.au/ for 37db17c3
index at:
100755 37db17c39ce632f7c99cf652cbbece2d9e7421bb	test/run_avocado

applying [2/5] https://archives.passt.top/passt-dev/20240805123701.1720730-5-david@gibson.dropbear.id.au/
diff --git a/test/run_avocado b/test/run_avocado
index 37db17c3..19a94a8f 100755


applying [3/5] https://archives.passt.top/passt-dev/20240805123701.1720730-6-david@gibson.dropbear.id.au/
diff --git a/test/run_avocado b/test/run_avocado
index 19a94a8f..d518b9ec 100755


applying [4/5] https://archives.passt.top/passt-dev/20240805123701.1720730-7-david@gibson.dropbear.id.au/
diff --git a/test/run_avocado b/test/run_avocado
index d518b9ec..26a226ce 100755


applying [5/5] https://archives.passt.top/passt-dev/20240805123701.1720730-8-david@gibson.dropbear.id.au/
diff --git a/test/run_avocado b/test/run_avocado
index 26a226ce..b62864f6 100755

Checking patch test/run_avocado...
Applied patch test/run_avocado cleanly.
Checking patch test/run_avocado...
Applied patch test/run_avocado cleanly.
Checking patch test/run_avocado...
Applied patch test/run_avocado cleanly.
Checking patch test/run_avocado...
Applied patch test/run_avocado cleanly.

index at:
100755 b62864f607b9e2b8f62283a742e0f85be1240057	test/run_avocado

Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).