Skip to content

Commit

Permalink
Minor changes for test and turning off debug msgs
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan-R committed Sep 29, 2015
1 parent 5fa6ca3 commit fb30c91
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions cma/systemtests/docker.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python
# vim: smartindent tabstop=4 shiftwidth=4 expandtab number
# vim: smartindent tabstop=4 shiftwidth=4 expandtab number colorcolumn=90
#
# This file is part of the Assimilation Project.
#
Expand Down Expand Up @@ -109,7 +109,7 @@ def stopservice(self, servicename, async=False):

class DockerSystem(TestSystem):
'This class implements managing local Docker-based test systems'
dockercmd = '/usr/bin/docker.io'
dockercmd = '/usr/bin/docker'
servicecmd = '/usr/bin/service'
nsentercmd = '/usr/bin/nsenter'

Expand Down Expand Up @@ -215,7 +215,8 @@ def runinimage(self, cmdargs, detached=True):
if self.status != TestSystem.RUNNING:
raise RuntimeError('Docker Container %s is not running - docker exec not possible'
% self.name)
self.docker_nsenter(cmdargs, detached)
#self.docker_nsenter(cmdargs, detached)
self.docker_exec(cmdargs, detached)

def docker_nsenter(self, cmdargs, detached=True):
'Runs the given command on our running docker image using nseneter'
Expand All @@ -226,7 +227,7 @@ def docker_nsenter(self, cmdargs, detached=True):
#print >> sys.stderr, 'RUNNING nsenter cmd:', args
subprocess.check_call(args)

def dockerexec(self, cmdargs, detached=True):
def docker_exec(self, cmdargs, detached=True):
'Runs the given command on our running docker image using docker exec'
if self.status != TestSystem.RUNNING:
raise RuntimeError('Docker Container %s is not running - docker exec not possible'
Expand Down Expand Up @@ -298,6 +299,7 @@ def __init__(self, logname, nanocount=10
' // Python version .* // java version.*') % self.cma.hostname
watch.setregexes((regex,))
if watch.lookforall(timeout=60) is None:
print >> sys.stderr, 'CMA did not start!!'
raise RuntimeError('CMA did not start')
print >> sys.stderr, 'nanocount is', nanocount
print >> sys.stderr, 'self.nanoimages is', self.nanoimages
Expand Down
2 changes: 1 addition & 1 deletion cma/transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def _commit_network_trans(self, io):
if packet['action'] == FrameSetTypes.STARTUP:
raise ValueError('Packet is a STARTUP packet %s to %s' % (str(packet), dest))
from cmadb import CMAdb
CMAdb.log.info('SENDING PACKET: %s' % str(packet))
#CMAdb.log.info('SENDING PACKET: %s' % str(packet))
for frame in packet['frames']:
ftype = frame['frametype']
fvalue = frame['framevalue']
Expand Down

0 comments on commit fb30c91

Please sign in to comment.