Skip to content

Commit

Permalink
Merge "Make sure unit-test results are handled properly." into R2.22-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Dec 16, 2015
2 parents dc96788 + ae1d7b1 commit cc3faf2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/config/device-manager/setup.py
Expand Up @@ -2,7 +2,7 @@
# Copyright (c) 2014 Juniper Networks, Inc. All rights reserved.
#
from setuptools import setup, find_packages, Command
import os
import os, re

class RunTestsCommand(Command):
description = "Test command to run testr in virtualenv"
Expand All @@ -13,6 +13,9 @@ def finalize_options(self):
self.cwd = os.getcwd()
def run(self):
os.system('./run_tests.sh -V')
with open('test.log') as f:
if not re.search('\nOK', ''.join(f.readlines())):
os._exit(1)

setup(
name='device_manager',
Expand Down
3 changes: 3 additions & 0 deletions src/config/svc-monitor/setup.py
Expand Up @@ -14,6 +14,9 @@ def finalize_options(self):
self.cwd = os.getcwd()
def run(self):
os.system('./run_tests.sh -V')
with open('test.log') as f:
if not re.search('\nOK', ''.join(f.readlines())):
os._exit(1)

def requirements(filename):
with open(filename) as f:
Expand Down
1 change: 0 additions & 1 deletion src/config/vnc_openstack/setup.py
Expand Up @@ -2,7 +2,6 @@
# Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
#

import os
import os, sys, re

from setuptools import setup, find_packages, Command
Expand Down

0 comments on commit cc3faf2

Please sign in to comment.