Files
aptly/system/t10_task/run.py
Andrey Smirnov 2943422d5d Automatic versioning for aptly
New version format:

* for releases, `x.y.z` (follows tag without leading `v`)
* for nightly builds, `x.y.z+N+hash` (previous version, not the upcoming one)

This means that each nightly build `aptly` would report
correct version now.

Version is now complied into the aptly binary, system tests
automatically check for current version, no need to update them
anymore.
2017-03-25 00:18:45 +03:00

41 lines
858 B
Python

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"