Skip to content
Snippets Groups Projects
Commit 714b4970 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(Top level): Improve the test code.

parent abcc500d
No related branches found
No related tags found
No related merge requests found
2003-10-06 Per Cederqvist <ceder@ceder.dyndns.org> 2003-10-06 Per Cederqvist <ceder@ceder.dyndns.org>
Improve the test code.
* pcl_expect.py (Top level): Improve the test code.
Who can refuse the Inspiration? The impl, expectable and popen Who can refuse the Inspiration? The impl, expectable and popen
classes seems to work now. classes seems to work now.
* pcl_expect.py (expectable.__init__): New argument: fileno. * pcl_expect.py (expectable.__init__): New argument: fileno.
......
...@@ -255,19 +255,22 @@ if __name__ == '__main__': ...@@ -255,19 +255,22 @@ if __name__ == '__main__':
x = impl() x = impl()
while x.loop(): while x.loop():
if x.re(df, "^/.* .*\n"): if x.re(df, "^/.* .*(?=\n)"):
print "Normal line:", df.match.group() print "Normal line:", df.match.group()
x.cont() x.cont()
continue continue
elif x.re(df, "^/.*\n"): elif x.re(df, "^/.*(?=\n)"):
print "Mount point only:", df.match.group() print "Mount point only:", df.match.group()
x.cont() x.cont()
continue continue
elif x.re(df, "^ .*\n"): elif x.re(df, "^ .*(?=\n)"):
print "Info only:", df.match.group() print "Info only:", df.match.group()
x.cont() x.cont()
continue continue
elif x.re(df, "^.*\n"): elif x.re(df, "^\n"):
x.cont()
continue
elif x.re(df, "^.*(?=\n)"):
print "Unexpected line", df.match.group() print "Unexpected line", df.match.group()
x.cont() x.cont()
continue continue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment