]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
forcing tests to start using python3 in virtualenv
authorrakeshgm <rakeshgm014@gmail.com>
Tue, 10 Dec 2019 17:13:35 +0000 (22:43 +0530)
committerrakeshgm <rakeshgm014@gmail.com>
Tue, 10 Dec 2019 17:13:35 +0000 (22:43 +0530)
Signed-off-by: rakeshgm <rakeshgm014@gmail.com>
qa/tasks/nfs_ganesha_rgw_v2.py
qa/tasks/rgw_longrunning.py
qa/tasks/rgw_system_test.py

index 632ba06db1f43f95b1ecd0fa54815fdc67ffac8c..2c8254049cf745b7d2275f3092eb4eb9e5a6d356 100644 (file)
@@ -104,7 +104,7 @@ def task(ctx, config):
 
     rgw[0].run(args=['cd', 'nfs_ganesha_rgw/ceph-qe-scripts', run.Raw(';'), 'git', 'checkout', '%s' % branch])
 
-    rgw[0].run(args=['virtualenv', 'venv'])
+    rgw[0].run(args=['python3', '-m', 'venv', 'venv'])
 
     rgw[0].run(
         args=[
@@ -156,7 +156,7 @@ def task(ctx, config):
 
     rgw[0].run(
         args=[run.Raw(
-            'sudo venv/bin/python2.7 nfs_ganesha_rgw/ceph-qe-scripts/rgw/v2/tests/nfs_ganesha/%s '
+            'sudo venv/bin/python3 nfs_ganesha_rgw/ceph-qe-scripts/rgw/v2/tests/nfs_ganesha/%s '
             '-r nfs_ganesha_rgw/ceph-qe-scripts/rgw/v2/tests/nfs_ganesha/config/rgw_user.yaml '
             '-c nfs_ganesha_rgw/ceph-qe-scripts/rgw/v2/tests/nfs_ganesha/config/%s ' % (script_name, test_name))])
 
index f97d8f403fe1b2bf309af8fac399c18e4f6bc6bf..4b77fee4953a29cd2fd1bafbc695bdafdb8d500c 100644 (file)
@@ -156,7 +156,7 @@ def task(ctx, config):
                                                    DIR[config.get('test_version', 'v2')]['config'])])
     clients[0].run(args=['cat', config_file])
     # os.remove(local_file)
-    clients[0].run(args=['virtualenv', 'venv'])
+    clients[0].run(args=['python3', '-m', 'venv', 'venv'])
     clients[0].run(
         args=[
             'source',
@@ -172,7 +172,7 @@ def task(ctx, config):
     time.sleep(60)
     clients[0].run(
         args=[run.Raw(
-            'sudo venv/bin/python2.7 %s -c %s ' % (script, config_file))])
+            'sudo venv/bin/python3 %s -c %s ' % (script, config_file))])
     try:
         yield
     finally:
index 22d491f9ad62cb47434a93f311309039c6999676..fcda800aff8180fc783f78317a16bc0b7a489626 100644 (file)
@@ -95,7 +95,7 @@ def task(ctx, config):
                                                        DIR[config.get('test_version', 'v2')]['config'])])
             remote.run(args=['cat', config_file])
             # os.remove(local_file)
-        remote.run(args=['virtualenv', 'venv'])
+        remote.run(args=['python3', '-m', 'venv', 'venv'])
         remote.run(
             args=[
                 'source',
@@ -112,7 +112,7 @@ def task(ctx, config):
         time.sleep(60)
         remote.run(
             args=[run.Raw(
-                'sudo venv/bin/python2.7 %s -c %s ' % (script, config_file))])
+                'sudo venv/bin/python3 %s -c %s ' % (script, config_file))])
     try:
         yield
     finally: