Skip to content

Commit

Permalink
qa: import Raw from run_helper instead of run
Browse files Browse the repository at this point in the history
Class Raw has been moved from teuthology.orchestra.run to
teuthology.orchestra.run_helper. Update Ceph QA code accordingly.

Related PR: ceph/teuthology#1652.

Signed-off-by: Rishabh Dave <[email protected]>
  • Loading branch information
rishabh-d-dave committed Jun 15, 2021
1 parent fa03786 commit 92cf183
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion qa/tasks/cephfs/caps_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""
from tasks.cephfs.cephfs_test_case import CephFSTestCase

from teuthology.orchestra.run import Raw
from teuthology.orchestra.run_helper import Raw

class CapsHelper(CephFSTestCase):

Expand Down
3 changes: 2 additions & 1 deletion qa/tasks/cephfs/mount.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
from teuthology.contextutil import safe_while
from teuthology.misc import get_file, sudo_write_file
from teuthology.orchestra import run
from teuthology.orchestra.run import CommandFailedError, ConnectionLostError, Raw
from teuthology.orchestra.run import CommandFailedError, ConnectionLostError
from teuthology.orchestra.run_helper import Raw

from tasks.cephfs.filesystem import Filesystem

Expand Down
3 changes: 2 additions & 1 deletion qa/tasks/cephfs/test_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
from io import StringIO
from os.path import join as os_path_join

from teuthology.orchestra.run import CommandFailedError, Raw
from teuthology.orchestra.run import CommandFailedError
from teuthology.orchestra.run_helper import Raw

from tasks.cephfs.cephfs_test_case import CephFSTestCase
from tasks.cephfs.filesystem import FileLayout, FSMissing
Expand Down
3 changes: 2 additions & 1 deletion qa/tasks/cephfs/test_snapshots.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
from textwrap import dedent
from tasks.cephfs.fuse_mount import FuseMount
from tasks.cephfs.cephfs_test_case import CephFSTestCase
from teuthology.orchestra.run import CommandFailedError, Raw
from teuthology.orchestra.run import CommandFailedError
from teuthology.orchestra.run_helper import Raw

log = logging.getLogger(__name__)

Expand Down
3 changes: 2 additions & 1 deletion qa/tasks/cephfs/test_strays.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
import datetime
import gevent

from teuthology.orchestra.run import CommandFailedError, Raw
from teuthology.orchestra.run import CommandFailedError
from teuthology.orchestra.run_helper import Raw
from tasks.cephfs.cephfs_test_case import CephFSTestCase, for_teuthology

log = logging.getLogger(__name__)
Expand Down
3 changes: 2 additions & 1 deletion qa/tasks/mds_creation_failure.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
import time
from tasks import ceph_manager
from teuthology import misc
from teuthology.orchestra.run import CommandFailedError, Raw
from teuthology.orchestra.run import CommandFailedError
from teuthology.orchestra.run_helper import Raw

log = logging.getLogger(__name__)

Expand Down
2 changes: 1 addition & 1 deletion qa/tasks/vstart_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

from unittest import suite, loader

from teuthology.orchestra.run import Raw, quote
from teuthology.orchestra.run_helper import Raw, quote
from teuthology.orchestra.daemon import DaemonGroup
from teuthology.orchestra.remote import Remote
from teuthology.config import config as teuth_config
Expand Down

0 comments on commit 92cf183

Please sign in to comment.