Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
next test cases
Piping test output through tee means that we have to now be careful to catch failures in pipelines, otherwise make(1) would silently ignore a failure of the test suite run caused by a module not being installed.
- Loading branch information
Showing
43 changed files
with
745 additions
and
319 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,6 @@ tar_scm | |
.*.sw? | ||
tmp/ | ||
.coverage | ||
htmlcov/ | ||
test*.log | ||
cover*.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,38 @@ | ||
from tasks import tasks | ||
from helpers import helpers | ||
from cli import cli | ||
from archive import archive | ||
import sys | ||
import os | ||
|
||
from TarSCM.tasks import tasks | ||
from TarSCM.helpers import helpers | ||
from TarSCM.cli import cli | ||
from TarSCM.archive import tar | ||
from TarSCM.archive import obscpio | ||
from TarSCM.exceptions import OptionsError | ||
|
||
def run(): | ||
_cli = cli() | ||
_cli.parse_args(sys.argv[1:]) | ||
|
||
if os.path.basename(sys.argv[0]) == "tar": | ||
_cli.scm = "tar" | ||
|
||
if os.path.basename(sys.argv[0]) == "obs_scm": | ||
_cli.use_obs_scm = True | ||
|
||
if os.path.basename(sys.argv[0]) == "snapcraft": | ||
_cli.snapcraft = True | ||
|
||
task_list = tasks() | ||
|
||
task_list.generate_list(_cli) | ||
|
||
try: | ||
task_list.process_list() | ||
except OptionsError as e: | ||
print(e) | ||
sys.exit(1) | ||
|
||
task_list.finalize(_cli) | ||
|
||
task_list.cleanup() | ||
|
||
raise SystemExit(0) |
Oops, something went wrong.