X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=cli_driver.py;h=d4d277d33e822f7e8f4ff9dc75f25c92eec335e4;hb=39e433e9d73c16c862ac759e36260398cf71424d;hp=a7f4b3d5212a67821e636715140c8bc5e5d0c5f9;hpb=21e5859e0292d7adc067f98a87be1bb0fe5d11d4;p=apitrace-tests diff --git a/cli_driver.py b/cli_driver.py index a7f4b3d..d4d277d 100644 --- a/cli_driver.py +++ b/cli_driver.py @@ -33,6 +33,7 @@ class CliDriver(Driver): def do_apitrace(self, args): cmd = [self.options.apitrace] + args[1:] + print " ".join(cmd) proc = subprocess.Popen(cmd, stdout = subprocess.PIPE) self.output = proc.communicate()[0] @@ -83,12 +84,14 @@ class CliDriver(Driver): line = script.readline() + # Exit loop on EOF if (line == ''): break cmd = line.split() - if (len(cmd) == 0): + # Ignore blank lines and comments + if (len(cmd) == 0 or line[0] == '#'): continue if (cmd[0] == 'EXPECT_FAILURE:'):