Ejemplo n.º 1
0
    def test_get_files(self):
        ctx = SrtContext(make_args('v4.4.115-rt38', 'v4.4.115-rt39'), '/tmp')

        path = '/tmp/patches/v4.4.115-rt39/'
        files = [
            path + 'patch-4.4.115-rt39.patch.xz',
            path + 'patches-4.4.115-rt39.tar.xz'
        ]
        self.assertEqual(ctx.get_files(), files)
Ejemplo n.º 2
0
    def test_get_files(self):
        ctx = SrtContext('/tmp')
        ctx.add_tag('old', 'v4.4.115-rt38')
        ctx.add_tag('new', 'v4.4.115-rt39')
        ctx.init()

        path = '/tmp/patches/v4.4.115-rt39/'
        files = [
            path + 'patch-4.4.115-rt39.patch.xz',
            path + 'patches-4.4.115-rt39.tar.xz',
            path + 'patch-4.4.115-rt38-rt39.patch.xz'
        ]
        self.assertEqual(ctx.get_files(), files)