File: run.py

package info (click to toggle)
aptly 1.6.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 49,928 kB
  • sloc: python: 10,398; sh: 252; makefile: 184
file content (40 lines) | stat: -rw-r--r-- 858 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
from lib import BaseTest


class RunTask1Test(BaseTest):
    """
    task run: simple commands, 1-word command
    """
    gold_processor = BaseTest.expand_environ

    runCmd = "aptly task run repo list, repo create local, repo drop local, version"


class RunTask2Test(BaseTest):
    """
    task run: commands with args
    """
    runCmd = "aptly task run -- repo list -raw, repo create local, repo list"


class RunTask3Test(BaseTest):
    """
    task run: failure
    """
    expectedCode = 1
    runCmd = "aptly task run -- repo show a, repo create local, repo list"


class RunTask4Test(BaseTest):
    """
    task run: from file
    """
    runCmd = "aptly task run -filename=${testfiles}/task"


class RunTask5Test(BaseTest):
    """
    task run: from file not found
    """
    expectedCode = 1
    runCmd = "aptly task run -filename=not_found"