raiseAssertionError('The standard output of the command "{}" does not include the following correct result:\n{}\cmd result in shell:\n{}'.format(''.join(cmd),real.stdout,shell_stdout))
breakpoint()
raiseAssertionError('The standard output of the command "{}" does not include the following correct result:\n{}\ncmd result in shell:\n{}'.format(''.join(cmd),real.stdout,shell_stdout))
eliftest_stdout=='empty':
ifshell_stdout:
raiseAssertionError('The standard error of the command "{}" shouldbe empty but contains:\n{}'.format(shell_stderr))
...
...
@@ -263,7 +265,7 @@ class Test:
shell_stderr=shell.read_stderr()
iftest_stderr=='include':
ifnotreal.stderrinshell_stderr:
raiseAssertionError('The standard output of the command "{}" does not include the following correct result:\n{}\cmd result in shell:\n{}'.format(''.join(cmd),real.stderr,shell_stderr))
raiseAssertionError('The standard output of the command "{}" does not include the following correct result:\n{}\ncmd result in shell:\n{}'.format(''.join(cmd),real.stderr,shell_stderr))
eliftest_stdout=='empty':
ifshell_stderr:
raiseAssertionError('The standard error of the command "{}" shouldbe empty but contains:\n{}'.format(shell_stderr))
...
...
@@ -506,11 +508,13 @@ class Test:
if__name__=="__main__":
iflen(sys.argv)<2:
print_usage()
exit(1)
t=Test(sys.argv[1])
parser=argparse.ArgumentParser(
prog='test',
description='Tests the shell TP')
parser.add_argument('filename',help='the name of the shell executable')