]> git.cworth.org Git - apitrace-tests/blobdiff - cli_driver.py
Add some comments to the recently-added cli tests.
[apitrace-tests] / cli_driver.py
index a7f4b3d5212a67821e636715140c8bc5e5d0c5f9..53bd100a50dc362809e64f30b7ae0efffdac4b1d 100644 (file)
@@ -83,12 +83,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:'):