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 2019/01/17 17:02:13 UTC
[qpid-dispatch] branch master updated: DISPATCH-1236 Don't change
the package-lock.json during a console test
This is an automated email from the ASF dual-hosted git repository.
eallen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/qpid-dispatch.git
The following commit(s) were added to refs/heads/master by this push:
new fb5c1f2 DISPATCH-1236 Don't change the package-lock.json during a console test
fb5c1f2 is described below
commit fb5c1f2e2c91e07d17e919ca9b33e7202e2bffdd
Author: Ernest Allen <ea...@redhat.com>
AuthorDate: Thu Jan 17 12:01:57 2019 -0500
DISPATCH-1236 Don't change the package-lock.json during a console test
---
tests/system_tests_console.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tests/system_tests_console.py b/tests/system_tests_console.py
index 7b76bf2..39f0888 100644
--- a/tests/system_tests_console.py
+++ b/tests/system_tests_console.py
@@ -102,6 +102,7 @@ class ConsoleTest(system_test.TestCase):
if not node_modules:
p0 = subprocess.Popen(['npm', 'install', '--loglevel=error'], stdout=PIPE, cwd=src_dir)
p0.wait()
+ shutil.copy2("%s/package-lock.json" % src_dir, "%s/package-lock.json.tmp" % src_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)
@@ -117,6 +118,8 @@ class ConsoleTest(system_test.TestCase):
# if we created the node_modules dir, remove it
if not node_modules:
shutil.rmtree(node_dir)
+ shutil.copy2("%s/package-lock.json.tmp" % src_dir, "%s/package-lock.json" % src_dir)
+ os.remove("%s/package-lock.json.tmp" % src_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