qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v7 10/11] iotests: rewrite check into python


From: Vladimir Sementsov-Ogievskiy
Subject: Re: [PATCH v7 10/11] iotests: rewrite check into python
Date: Fri, 22 Jan 2021 16:53:14 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1

16.01.2021 16:44, Vladimir Sementsov-Ogievskiy wrote:
Just use classes introduced in previous three commits. Behavior
difference is described in these three commits.

Drop group file, as it becomes unused.

Drop common.env: now check is in python, and for tests we use same
python interpreter that runs the check itself. Use build environment
PYTHON in check-block instead, to keep "make check" use the same
python.

Signed-off-by: Vladimir Sementsov-Ogievskiy<vsementsov@virtuozzo.com>


squash-in to support group.local:

@@ -117,6 +117,13 @@ if __name__ == '__main__':
     groups = args.groups.split(',') if args.groups else None
     x_groups = args.exlude_groups.split(',') if args.exclude_groups else None
+ group_local = os.path.join(env.source_iotests, 'group.local')
+    if os.path.isfile(group_local):
+        try:
+            testfinder.add_group_file(group_local)
+        except ValueError as e:
+            sys.exit(f"Filed to parse group file '{group_local}': {e}")
+
     try:
         tests = testfinder.find_tests(groups=groups, exclude_groups=x_groups,
                                       tests=args.tests,



--
Best regards,
Vladimir



reply via email to

[Prev in Thread] Current Thread [Next in Thread]