Browse Source

minor fixes

MMGen 6 years ago
parent
commit
4240393804
3 changed files with 7 additions and 5 deletions
  1. 1 1
      mmgen/opts.py
  2. 5 3
      scripts/test-release.sh
  3. 1 1
      test/pexpect.py

+ 1 - 1
mmgen/opts.py

@@ -63,7 +63,7 @@ def opt_postproc_debug():
 	Msg('    Opts after processing:')
 	for k in a:
 		v = getattr(opt,k)
-		Msg('        {:18}: {:<6} [{}]'.format(k,v,type(v).__name__))
+		Msg('        {:18}: {!r:<6} [{}]'.format(k,v,type(v).__name__))
 	Msg("    Opts set to 'None':")
 	Msg('        {}\n'.format('\n        '.join(b)))
 	Msg('    Global vars:')

+ 5 - 3
scripts/test-release.sh

@@ -30,19 +30,21 @@ while getopts hbCfiIlOpRtvV OPT
 do
 	case "$OPT" in
 	h)  printf "  %-16s Test MMGen release\n" "${PROGNAME}:"
-		echo   "  USAGE:           $PROGNAME [options] [branch] [tests]"
+		echo   "  USAGE:           $PROGNAME [options] [tests]"
 		echo   "  OPTIONS: '-h'  Print this help message"
 		echo   "           '-b'  Buffer keypresses for all invocations of 'test/test.py'"
 		echo   "           '-C'  Run tests in coverage mode"
 		echo   "           '-f'  Speed up the tests by using fewer rounds"
-		echo   "           '-i'  Create and install Python package, then run tests"
+		echo   "           '-i'  Create and install Python package, then run tests.  A branch"
+		echo   "                 must be supplied as the first argument"
 		echo   "           '-I'  Install the package only; don't run tests"
 		echo   "           '-l'  List the test name symbols"
 		echo   "           '-O'  Use pexpect.spawn rather than popen_spawn for applicable tests"
 		echo   "           '-p'  Pause between tests"
 		echo   "           '-R'  Don't remove temporary files after program has exited"
 		echo   "           '-t'  Print the tests without running them"
-		echo   "           '-v'  Run test/test.py with '--exact-output' and other commands with '--verbose' switch"
+		echo   "           '-v'  Run test/test.py with '--exact-output' and other commands with"
+		echo   "                 '--verbose' switch"
 		echo   "           '-V'  Run test/test.py and other commands with '--verbose' switch"
 		echo   "  AVAILABLE TESTS:"
 		echo   "     obj      - data objects"

+ 1 - 1
test/pexpect.py

@@ -151,7 +151,7 @@ class MMGenPexpect(object):
 		# readline() of partial lines doesn't work with PopenSpawn, so do this instead:
 		self.expect(NL,nonl=True,silent=True)
 		debug_pexpect_msg(self.p)
-		end = self.p.before
+		end = self.p.before.rstrip()
 		if not g.debug:
 			vmsg(' ==> {}'.format(cyan(end)))
 		return end