Exemplo n.º 1
0
    def setUp(self):
        ParserTest.setUp(self)

        (handle, self._path) = tempfile.mkstemp(prefix="ks-", text=True)
        s = self.ks.encode('utf-8')

        os.write(handle, s)
        os.close(handle)
Exemplo n.º 2
0
    def __init__(self, *args, **kwargs):
        ParserTest.__init__(self, *args, **kwargs)
        self.ks = """
lang en_US
keyboard us
autopart
"""

        self.ksappend = """
Exemplo n.º 3
0
    def __init__(self, *args, **kwargs):
        ParserTest.__init__(self, *args, **kwargs)
        self.ks = """
lang en_US
keyboard us
autopart
"""

        self.ksappend = """
Exemplo n.º 4
0
    def setUp(self):
        ParserTest.setUp(self)

        (handle, self._ksappendPath) = tempfile.mkstemp(prefix="ksappend-", text=True)
        s = self.ksappend
        if six.PY3:
            s = s.encode('utf-8')

        os.write(handle, s)
        os.close(handle)
Exemplo n.º 5
0
    def setUp(self):
        ParserTest.setUp(self)

        (handle, self._ksappendPath) = tempfile.mkstemp(prefix="ksappend-", text=True)
        s = self.ksappend
        if six.PY3:
            s = s.encode('utf-8')

        os.write(handle, s)
        os.close(handle)
Exemplo n.º 6
0
    def setUp(self):
        ParserTest.setUp(self)

        (handle, self._path) = tempfile.mkstemp(prefix="include-", text=True)
        ks = self.includeKS
        if six.PY3:
            ks = ks.encode('utf-8')

        os.write(handle, ks)
        os.close(handle)
Exemplo n.º 7
0
    def setUp(self):
        ParserTest.setUp(self)
        self._processedPath = None

        (handle, self._path) = tempfile.mkstemp(prefix="ks-", text=True)
        s = self.ks
        if six.PY3:
            s = s.encode('utf-8')

        os.write(handle, s)
        os.close(handle)
Exemplo n.º 8
0
    def setUp(self):
        ParserTest.setUp(self)
        self._processedPath = None

        (handle, self._path) = tempfile.mkstemp(prefix="ks-", text=True)
        s = self.ks
        if six.PY3:
            s = s.encode('utf-8')

        os.write(handle, s)
        os.close(handle)
Exemplo n.º 9
0
    def setUp(self):
        ParserTest.setUp(self)

        (handle, self._ksappendPath) = tempfile.mkstemp(prefix="ksappend-", text=True)
        s = self.ksappend.encode('utf-8')

        os.write(handle, s)
        os.close(handle)

        # Write the ksappend file first so we know its filename for making the
        # %ksappend line.
        (handle, self._path) = tempfile.mkstemp(prefix="ks-", text=True)
        s = self.ks + "%ksappend " + self._ksappendPath
        s = s.encode('utf-8')

        os.write(handle, s)
        os.close(handle)
Exemplo n.º 10
0
    def setUp(self):
        ParserTest.setUp(self)

        (handle, self._ksappendPath) = tempfile.mkstemp(prefix="ksappend-", text=True)
        s = self.ksappend
        if six.PY3:
            s = s.encode('utf-8')

        os.write(handle, s)
        os.close(handle)

        # Write the ksappend file first so we know its filename for making the
        # %ksappend line.
        (handle, self._path) = tempfile.mkstemp(prefix="ks-", text=True)
        s = self.ks + "%ksappend " + self._ksappendPath
        if six.PY3:
            s = s.encode('utf-8')

        os.write(handle, s)
        os.close(handle)
Exemplo n.º 11
0
 def __init__(self, *args, **kwargs):
     ParserTest.__init__(self, *args, **kwargs)
     self.ks = """
Exemplo n.º 12
0
 def __init__(self, *args, **kwargs):
     ParserTest.__init__(self, *args, **kwargs)
     self.ks = """
Exemplo n.º 13
0
 def __init__(self, *args, **kwargs):
     ParserTest.__init__(self, *args, **kwargs)
     self.ks = "\n%traceback\n%end\n"
Exemplo n.º 14
0
 def tearDown(self):
     ParserTest.tearDown(self)
     os.unlink(self._path)
Exemplo n.º 15
0
 def __init__(self, *args, **kwargs):
     ParserTest.__init__(self, *args, **kwargs)
     self.version = RHEL7
     self.ks = """
Exemplo n.º 16
0
 def __init__(self, *args, **kwargs):
     ParserTest.__init__(self, *args, **kwargs)
     self.includeKS = ""
Exemplo n.º 17
0
 def __init__(self, *args, **kwargs):
     ParserTest.__init__(self, *args, **kwargs)
     self.version = F7
Exemplo n.º 18
0
 def __init__(self, *args, **kwargs):
     ParserTest.__init__(self, *args, **kwargs)
     self.version = RHEL6
     self.ks = """
Exemplo n.º 19
0
 def __init__(self, *args, **kwargs):
     ParserTest.__init__(self, *args, **kwargs)
     self.version = F7
Exemplo n.º 20
0
 def tearDown(self):
     ParserTest.tearDown(self)
     os.unlink(self._ksappendPath)
Exemplo n.º 21
0
 def tearDown(self):
     ParserTest.tearDown(self)
     os.unlink(self._path)
     os.unlink(self._ksappendPath)
     if self._processedPath:
         os.unlink(self._processedPath)
Exemplo n.º 22
0
 def __init__(self, *args, **kwargs):
     ParserTest.__init__(self, *args, **kwargs)
     self.version = F32
     self.ks = "%packages --instLangs cs_CZ --excludeWeakdeps\nsomething\n\n%end\n"
Exemplo n.º 23
0
 def setUp(self):
     ParserTest.setUp(self)
     self._path = None
Exemplo n.º 24
0
 def tearDown(self):
     ParserTest.tearDown(self)
     os.unlink(self._ksappendPath)
Exemplo n.º 25
0
 def setUp(self):
     ParserTest.setUp(self)
     self._path = None
Exemplo n.º 26
0
 def tearDown(self):
     ParserTest.tearDown(self)
     os.unlink(self._path)
     os.unlink(self._ksappendPath)
     if self._processedPath:
         os.unlink(self._processedPath)