run-test: fix AttributeError in the --interactive prompt
authorPierre-Yves David <pierre-yves.david@fb.com>
Sat, 17 May 2014 00:38:48 -0700
changeset 21387 82f8d4e95c87
parent 21386 3b0c522f04aa
child 21388 9a1e3d705c2c
run-test: fix AttributeError in the --interactive prompt One must choose between ``"y yes".split()`` and ``('y', 'yes')``. I choose the later. The feature still crash when you answer "yes" to use it. But at least, the prompt itself works.
tests/run-tests.py
--- a/tests/run-tests.py	Sat May 17 00:37:06 2014 -0700
+++ b/tests/run-tests.py	Sat May 17 00:38:48 2014 -0700
@@ -588,7 +588,7 @@
             print 'Accept this change? [n] ',
             answer = sys.stdin.readline().strip()
             iolock.release()
-            if answer.lower() in ('y', 'yes').split():
+            if answer.lower() in ('y', 'yes'):
                 if self._test.endswith('.t'):
                     rename(self._errpath, self._testpath)
                 else: