mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-01-12 03:21:33 +00:00
Don't hard require colors, exit with 1 on errors.
This commit is contained in:
@@ -7,7 +7,12 @@ import inspect
|
||||
import sys
|
||||
|
||||
from lib import BaseTest
|
||||
from termcolor import colored
|
||||
|
||||
try:
|
||||
from termcolor import colored
|
||||
except ImportError:
|
||||
def colored(s, **kwargs):
|
||||
return s
|
||||
|
||||
|
||||
def run():
|
||||
@@ -52,6 +57,7 @@ def run():
|
||||
print "ERROR: %s" % (e, )
|
||||
print "=" * 60
|
||||
|
||||
sys.exit(1)
|
||||
|
||||
if __name__ == "__main__":
|
||||
os.chdir(os.path.realpath(os.path.dirname(sys.argv[0])))
|
||||
|
||||
Reference in New Issue
Block a user