# HG changeset patch # User Denis Laxalde # Date 1561545325 -7200 # Node ID 8da08cc8640fe217c36ad917d1e96398bd691d32 # Parent 59c3e639f62c10c427f37b157c796f13bdb03b66 [test] Use --short-description when testing newcube command diff -r 59c3e639f62c -r 8da08cc8640f cubicweb/devtools/test/unittest_devctl.py --- a/cubicweb/devtools/test/unittest_devctl.py Mon Jun 17 17:23:36 2019 +0200 +++ b/cubicweb/devtools/test/unittest_devctl.py Wed Jun 26 12:35:25 2019 +0200 @@ -27,10 +27,11 @@ def newcube(directory, name): - cmd = ['cubicweb-ctl', 'newcube', '--directory', directory, name] + cmd = ['cubicweb-ctl', 'newcube', '--directory', directory, + '--short-description', 'short_desc', name] proc = Popen(cmd, stdin=PIPE, stdout=PIPE, stderr=STDOUT) - stdout, _ = proc.communicate(b'short_desc\n') - return proc.returncode, stdout + returncode = proc.wait() + return returncode, proc.stdout.read() def to_unicode(msg):