You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ea...@apache.org on 2018/12/03 15:44:38 UTC
qpid-dispatch git commit: DISPATCH-1203 Ensure console test runs each
time
Repository: qpid-dispatch
Updated Branches:
refs/heads/master 2f31dbad2 -> 3adde8e5d
DISPATCH-1203 Ensure console test runs each time
Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/3adde8e5
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/3adde8e5
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/3adde8e5
Branch: refs/heads/master
Commit: 3adde8e5dbe62a0b293584a0b210979c897a97c6
Parents: 2f31dba
Author: Ernest Allen <ea...@redhat.com>
Authored: Mon Dec 3 10:44:22 2018 -0500
Committer: Ernest Allen <ea...@redhat.com>
Committed: Mon Dec 3 10:44:22 2018 -0500
----------------------------------------------------------------------
tests/system_tests_console.py | 28 ++++++++++++++--------------
1 file changed, 14 insertions(+), 14 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/3adde8e5/tests/system_tests_console.py
----------------------------------------------------------------------
diff --git a/tests/system_tests_console.py b/tests/system_tests_console.py
index c0d24bd..7b76bf2 100644
--- a/tests/system_tests_console.py
+++ b/tests/system_tests_console.py
@@ -103,20 +103,20 @@ class ConsoleTest(system_test.TestCase):
p0 = subprocess.Popen(['npm', 'install', '--loglevel=error'], stdout=PIPE, cwd=src_dir)
p0.wait()
- prg = [test_cmd,'--require', 'babel-core/register', test_dir, '--http_port=%s' % self.http_port, '--src=%s/' % src_dir]
- p = self.popen(prg, stdout=PIPE, expect=None)
- out = p.communicate()[0]
- pret = p.returncode
-
- # write the output
- with open('run_console_test.out', 'w') as popenfile:
- popenfile.write('returncode was %s\n' % p.returncode)
- popenfile.write('out was:\n')
- popenfile.writelines(out)
-
- # if we created the node_modules dir, remove it
- if not node_modules:
- shutil.rmtree(node_dir)
+ prg = [test_cmd,'--require', 'babel-core/register', test_dir, '--http_port=%s' % self.http_port, '--src=%s/' % src_dir]
+ p = self.popen(prg, stdout=PIPE, expect=None)
+ out = p.communicate()[0]
+ pret = p.returncode
+
+ # write the output
+ with open('run_console_test.out', 'w') as popenfile:
+ popenfile.write('returncode was %s\n' % p.returncode)
+ popenfile.write('out was:\n')
+ popenfile.writelines(out)
+
+ # if we created the node_modules dir, remove it
+ if not node_modules:
+ shutil.rmtree(node_dir)
assert pret == 0, \
"console test exit status %s, output:\n%s" % (pret, out)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org