ci/deqp-runner: Add a post-deqp-run filter list for known flakes.
[mesa.git] / bin / khronos-update.py
index 6f93c71f8318e5d6541f695227949bd49cbcca6c..cc82a07b08c472c1ec7cf07f7e37d369cc766fe5 100755 (executable)
@@ -191,7 +191,10 @@ if __name__ == '__main__':
 
     parser = argparse.ArgumentParser()
     parser.add_argument('apis', nargs='*',
-                        choices=[group['api'] for group in SOURCES],
+                        # the `[[]]` here is a workaround for python bug 9625
+                        # where having `choices` breaks `nargs='*'`:
+                        # https://bugs.python.org/issue9625
+                        choices=[group['api'] for group in SOURCES] + [[]],
                         help='Only update the APIs specified.')
     args = parser.parse_args()