]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa/tasks/vstart_runner: do not teardown test_path if "create-cluster-only" 39540/head
authorKefu Chai <kchai@redhat.com>
Wed, 3 Jun 2020 01:39:26 +0000 (09:39 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 18 Feb 2021 03:17:54 +0000 (11:17 +0800)
commit151f44d189c094b61b065a36a8f74210cc2ad59e
tree9a5ad97a29a65b14099d31d9760643a0d0ba52b3
parentbf8c93ed52f9fc8b0ead7434383bfc40f78d4204
qa/tasks/vstart_runner: do not teardown test_path if "create-cluster-only"

otherwise we could be removing a "None" directory when tearing down the cluster,
and have following failure:

Exception ignored in: <bound method LocalContext.__del__ of <__main__.LocalContext object at 0x7f99fd4a6cc0>>
Traceback (most recent call last):
  File "../qa/tasks/vstart_runner.py", line 1189, in __del__
    shutil.rmtree(self.teuthology_config['test_path'])
  File "/tmp/tmp.mmM2ugspuR/venv/lib/python3.6/shutil.py", line 477, in rmtree
    onerror(os.lstat, path, sys.exc_info())
  File "/tmp/tmp.mmM2ugspuR/venv/lib/python3.6/shutil.py", line 475, in rmtree
    orig_st = os.lstat(path)
TypeError: lstat: path should be string, bytes or os.PathLike, not NoneType

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 954e9a6fa67cce8e3eb8105ee858340b60b84b15)
qa/tasks/vstart_runner.py