|
@@ -219,6 +219,8 @@ class TestSuiteInput(TestSuiteBase):
|
|
|
return t
|
|
|
|
|
|
def _input_func(self,func_name,arg_dfls,func_args,text,expect,term):
|
|
|
+ if term and g.platform == 'win':
|
|
|
+ return ('skip_warn','pexpect_spawn not supported on Windows platform')
|
|
|
func_args = {k:v for k,v in zip(arg_dfls.keys(),func_args)}
|
|
|
t = self.spawn(
|
|
|
'test/misc/input_func.py',
|
|
@@ -261,7 +263,8 @@ class TestSuiteInput(TestSuiteBase):
|
|
|
return self._get_char(['prompt> ','',True,5],'x','x',False)
|
|
|
|
|
|
def get_char2(self):
|
|
|
- return self._get_char(['prompt> ','',True,5],'xxxxx','xxxxx',False)
|
|
|
+ expect = 'x' if g.platform == 'win' else 'xxxxx'
|
|
|
+ return self._get_char(['prompt> ','',True,5],'xxxxx',expect,False)
|
|
|
|
|
|
def get_char3(self):
|
|
|
return self._get_char(['','',True,5],'x','x',False)
|
|
@@ -306,6 +309,8 @@ class TestSuiteInput(TestSuiteBase):
|
|
|
return self._line_input(['prompt> ',True,'foobarbaz',True],Ctrl_U+'foobar','foobar',True)
|
|
|
|
|
|
def _password_entry(self,prompt,opts=[],term=False):
|
|
|
+ if term and g.platform == 'win':
|
|
|
+ return ('skip_warn','pexpect_spawn not supported on Windows platform')
|
|
|
t = self.spawn( 'test/misc/input_func.py', opts + ['passphrase'], cmd_dir='.', pexpect_spawn=term )
|
|
|
imsg('Terminal: {}'.format(term))
|
|
|
pw = 'abc-α'
|