tests: drop sys.path modification
It's unnecessary to add the path manually. Signed-off-by: Haibo Lin <hlin@redhat.com>
This commit is contained in:
parent
3cf16eb42d
commit
0ed70fc8b6
@ -6,8 +6,6 @@ import unittest
|
||||
import os
|
||||
import sys
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
|
||||
|
||||
from pungi.arch import (get_compatible_arches, get_valid_arches, get_valid_multilib_arches,
|
||||
is_excluded, is_valid_arch, split_name_arch)
|
||||
|
||||
|
@ -7,8 +7,6 @@ import six
|
||||
import os
|
||||
import sys
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
|
||||
|
||||
from pungi.phases.buildinstall import (BuildinstallPhase, BuildinstallThread, link_boot_iso,
|
||||
BOOT_CONFIGS, tweak_configs)
|
||||
from tests.helpers import DummyCompose, PungiTestCase, touch
|
||||
|
@ -11,8 +11,6 @@ from six import StringIO
|
||||
|
||||
import kobo.conf
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
|
||||
|
||||
from pungi import checks
|
||||
|
||||
|
||||
|
@ -12,8 +12,6 @@ import sys
|
||||
import tempfile
|
||||
import shutil
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
|
||||
|
||||
from pungi.compose import Compose
|
||||
|
||||
|
||||
|
@ -9,8 +9,6 @@ import tempfile
|
||||
import os
|
||||
import sys
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
|
||||
|
||||
from pungi.wrappers.comps import CompsWrapper, CompsFilter, CompsValidationError
|
||||
from tests.helpers import BaseTestCase, FIXTURE_DIR
|
||||
|
||||
|
@ -11,8 +11,6 @@ import six
|
||||
import sys
|
||||
import mock
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
|
||||
|
||||
from pungi import checks
|
||||
from tests.helpers import load_config, PKGSET_REPOS
|
||||
|
||||
|
@ -10,8 +10,6 @@ import sys
|
||||
|
||||
from parameterized import parameterized
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
|
||||
|
||||
from pungi_utils import config_utils
|
||||
|
||||
|
||||
|
@ -7,8 +7,6 @@ import six
|
||||
import os
|
||||
import sys
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
|
||||
|
||||
from tests import helpers
|
||||
from pungi.createiso import CreateIsoOpts
|
||||
from pungi.phases import createiso
|
||||
|
@ -6,8 +6,6 @@ import os
|
||||
import sys
|
||||
from six.moves import StringIO
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
|
||||
|
||||
from tests import helpers
|
||||
from pungi import createiso
|
||||
|
||||
|
@ -10,8 +10,6 @@ import six
|
||||
import os
|
||||
import sys
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
|
||||
|
||||
from pungi.wrappers.createrepo import CreaterepoWrapper
|
||||
|
||||
|
||||
|
@ -12,8 +12,6 @@ import os
|
||||
import six
|
||||
import sys
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
|
||||
|
||||
from pungi.phases.createrepo import (CreaterepoPhase,
|
||||
create_variant_repo,
|
||||
get_productids_from_scm,
|
||||
|
@ -8,8 +8,6 @@ from productmd.extra_files import ExtraFiles
|
||||
|
||||
import six
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
|
||||
|
||||
from pungi.phases import extra_files
|
||||
from tests import helpers
|
||||
|
||||
|
@ -7,8 +7,6 @@ import six
|
||||
import os
|
||||
import sys
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
|
||||
|
||||
from tests import helpers
|
||||
from pungi.phases import extra_isos
|
||||
|
||||
|
@ -12,8 +12,6 @@ import six
|
||||
import os
|
||||
import sys
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
|
||||
|
||||
from pungi.wrappers import fus
|
||||
|
||||
from .helpers import touch, PungiTestCase
|
||||
|
@ -15,11 +15,6 @@ import logging
|
||||
|
||||
from six.moves import cStringIO
|
||||
|
||||
HERE = os.path.dirname(__file__)
|
||||
BINDIR = (os.path.join(HERE, '..', 'bin'))
|
||||
sys.path.insert(0, os.path.join(HERE, '..'))
|
||||
os.environ['PATH'] = '%s:%s' % (BINDIR, os.environ['PATH'])
|
||||
|
||||
from pungi.wrappers.pungi import PungiWrapper
|
||||
try:
|
||||
from pungi.dnf_wrapper import DnfWrapper, Conf
|
||||
|
@ -4,8 +4,6 @@ import mock
|
||||
import os
|
||||
import sys
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
|
||||
|
||||
from pungi.phases.gather.methods import method_deps as deps
|
||||
from tests import helpers
|
||||
|
||||
|
@ -8,8 +8,6 @@ import sys
|
||||
|
||||
import six
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
|
||||
|
||||
from pungi.phases.gather.methods import method_hybrid as hybrid
|
||||
from pungi.phases.pkgset.common import MaterializedPackageSet as PkgSet
|
||||
from tests import helpers
|
||||
|
@ -6,8 +6,6 @@ import sys
|
||||
|
||||
import six
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
|
||||
|
||||
from pungi.phases.gather.methods import method_nodeps as nodeps
|
||||
from tests import helpers
|
||||
|
||||
|
@ -12,8 +12,6 @@ except ImportError:
|
||||
|
||||
import six
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
|
||||
|
||||
from pungi.phases import gather
|
||||
from pungi.phases.pkgset.common import MaterializedPackageSet
|
||||
from pungi.phases.gather import _mk_pkg_map
|
||||
|
@ -10,8 +10,6 @@ import six
|
||||
import os
|
||||
import sys
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
|
||||
|
||||
from pungi.phases.gather.sources.source_module import GatherSourceModule
|
||||
from tests import helpers
|
||||
from pungi.module_util import Modulemd
|
||||
|
@ -10,8 +10,6 @@ import sys
|
||||
|
||||
from pungi.graph import SimpleAcyclicOrientedGraph
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
|
||||
|
||||
|
||||
class SimpleAcyclicOrientedGraphTestCase(unittest.TestCase):
|
||||
|
||||
|
@ -7,8 +7,6 @@ import six
|
||||
import os
|
||||
import sys
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
|
||||
|
||||
from pungi.phases.image_build import ImageBuildPhase, CreateImageBuildThread
|
||||
from tests.helpers import DummyCompose, PungiTestCase, boom
|
||||
|
||||
|
@ -11,8 +11,6 @@ import sys
|
||||
import tempfile
|
||||
import shutil
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
|
||||
|
||||
from pungi.phases.image_checksum import ImageChecksumPhase, dump_checksums
|
||||
from tests.helpers import DummyCompose, PungiTestCase
|
||||
|
||||
|
@ -12,8 +12,6 @@ import six
|
||||
import os
|
||||
import sys
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
|
||||
|
||||
from pungi.module_util import Modulemd
|
||||
from pungi.phases import init
|
||||
from tests.helpers import DummyCompose, PungiTestCase, touch, mk_boom, fake_run_in_threads
|
||||
|
@ -9,8 +9,6 @@ try:
|
||||
except ImportError:
|
||||
import unittest
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
|
||||
|
||||
from pungi.wrappers import iso
|
||||
|
||||
CORRECT_OUTPUT = '''dummy.iso: 31ff3e405e26ad01c63b62f6b11d30f6
|
||||
|
@ -13,8 +13,6 @@ import sys
|
||||
|
||||
import six
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
|
||||
|
||||
from pungi.wrappers.kojiwrapper import KojiWrapper, get_buildroot_rpms
|
||||
|
||||
from .helpers import FIXTURE_DIR
|
||||
|
@ -7,8 +7,6 @@ import os
|
||||
import stat
|
||||
import sys
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
|
||||
|
||||
from pungi import linker
|
||||
from tests import helpers
|
||||
|
||||
|
@ -8,8 +8,6 @@ import sys
|
||||
|
||||
import six
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
|
||||
|
||||
from pungi.phases.live_images import LiveImagesPhase, CreateLiveImageThread
|
||||
from tests.helpers import DummyCompose, PungiTestCase, boom
|
||||
|
||||
|
@ -7,8 +7,6 @@ import os
|
||||
|
||||
import six
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
|
||||
|
||||
from pungi.phases.livemedia_phase import LiveMediaPhase, LiveMediaThread
|
||||
from tests.helpers import DummyCompose, PungiTestCase, boom
|
||||
|
||||
|
@ -10,8 +10,6 @@ import sys
|
||||
|
||||
import six
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
|
||||
|
||||
from pungi.wrappers.lorax import LoraxWrapper
|
||||
|
||||
|
||||
|
@ -8,8 +8,6 @@ import os
|
||||
import sys
|
||||
import mock
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
|
||||
|
||||
from pungi import media_split
|
||||
|
||||
|
||||
|
@ -4,8 +4,6 @@ import sys
|
||||
|
||||
import six
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
|
||||
|
||||
from tests import helpers
|
||||
|
||||
from pungi import metadata
|
||||
|
@ -10,8 +10,6 @@ try:
|
||||
except ImportError:
|
||||
import unittest
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
|
||||
|
||||
from pungi.notifier import PungiNotifier
|
||||
|
||||
|
||||
|
@ -16,8 +16,6 @@ from six.moves import configparser
|
||||
|
||||
from parameterized import parameterized
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
|
||||
|
||||
from tests.helpers import BaseTestCase, PungiTestCase, touch, FIXTURE_DIR
|
||||
from pungi_utils import orchestrator as o
|
||||
|
||||
|
@ -7,8 +7,6 @@ import copy
|
||||
import os
|
||||
import sys
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
|
||||
|
||||
from tests import helpers
|
||||
from pungi import checks
|
||||
from pungi.phases import osbs
|
||||
|
@ -7,8 +7,6 @@ import sys
|
||||
|
||||
from kobo.shortcuts import force_list
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
|
||||
|
||||
from tests import helpers
|
||||
from pungi.phases import ostree_installer as ostree
|
||||
from six.moves import shlex_quote
|
||||
|
@ -7,8 +7,6 @@ import mock
|
||||
import os
|
||||
import sys
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
|
||||
|
||||
from tests import helpers
|
||||
from pungi.phases import ostree
|
||||
|
||||
|
@ -9,9 +9,6 @@ import mock
|
||||
import six
|
||||
import yaml
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'bin'))
|
||||
|
||||
from tests import helpers
|
||||
from pungi import ostree
|
||||
|
||||
|
@ -5,8 +5,6 @@ import mock
|
||||
import os
|
||||
import sys
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
|
||||
|
||||
from tests import helpers
|
||||
from pungi.ostree import utils
|
||||
|
||||
|
@ -8,8 +8,6 @@ try:
|
||||
except ImportError:
|
||||
import unittest
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
|
||||
|
||||
from tests.helpers import boom, touch, copy_fixture
|
||||
from pungi_utils import patch_iso
|
||||
|
||||
|
@ -5,8 +5,6 @@ import unittest
|
||||
import os
|
||||
import sys
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
|
||||
|
||||
from pungi.pathmatch import PathMatch, head_tail_split
|
||||
|
||||
|
||||
|
@ -10,8 +10,6 @@ import random
|
||||
import sys
|
||||
import time
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
|
||||
|
||||
from pungi.phases import weaver
|
||||
from tests.helpers import DummyCompose, boom
|
||||
|
||||
|
@ -6,8 +6,6 @@ import sys
|
||||
import mock
|
||||
import six
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
|
||||
|
||||
from pungi.module_util import Modulemd
|
||||
from pungi.phases.pkgset import common
|
||||
from tests import helpers
|
||||
|
@ -13,8 +13,6 @@ import tempfile
|
||||
import re
|
||||
from dogpile.cache import make_region
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
|
||||
|
||||
from pungi.phases.pkgset import pkgsets
|
||||
from tests import helpers
|
||||
|
||||
|
@ -11,8 +11,6 @@ try:
|
||||
except ImportError:
|
||||
import unittest
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
|
||||
|
||||
from pungi.phases.pkgset.sources import source_koji
|
||||
from tests import helpers
|
||||
from pungi.module_util import Modulemd
|
||||
|
@ -4,8 +4,6 @@ import os
|
||||
import sys
|
||||
import six
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
|
||||
|
||||
from pungi.wrappers import repoclosure as rc
|
||||
|
||||
from . import helpers
|
||||
|
@ -4,8 +4,6 @@ import mock
|
||||
import os
|
||||
import sys
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
|
||||
|
||||
from pungi.runroot import Runroot
|
||||
from tests import helpers
|
||||
|
||||
|
@ -12,8 +12,6 @@ import os
|
||||
import sys
|
||||
import six
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
|
||||
|
||||
from pungi.wrappers import scm
|
||||
from tests.helpers import touch
|
||||
|
||||
|
@ -11,8 +11,6 @@ import os
|
||||
import six
|
||||
import sys
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
|
||||
|
||||
import pungi.phases.test as test_phase
|
||||
from tests.helpers import DummyCompose, PungiTestCase, touch, mk_boom
|
||||
|
||||
|
@ -7,8 +7,6 @@ import sys
|
||||
import six
|
||||
from six.moves.configparser import SafeConfigParser
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
|
||||
|
||||
from tests.helpers import PungiTestCase, FIXTURE_DIR, touch, mk_boom
|
||||
from pungi_utils import unified_isos
|
||||
|
||||
|
@ -13,8 +13,6 @@ import shutil
|
||||
import subprocess
|
||||
import six
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
|
||||
|
||||
from pungi import compose
|
||||
from pungi import util
|
||||
|
||||
|
@ -8,8 +8,6 @@ import os
|
||||
import sys
|
||||
from six.moves import cStringIO
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
|
||||
|
||||
from pungi.wrappers.variants import VariantsXmlParser
|
||||
|
||||
VARIANTS_WITH_WHITESPACE = """
|
||||
|
Loading…
Reference in New Issue
Block a user