Fix parsing of skipped tests
authorSimon Hausmann <simon.hausmann@digia.com>
Mon, 7 Jan 2013 11:14:12 +0000 (12:14 +0100)
committerLars Knoll <lars.knoll@digia.com>
Mon, 7 Jan 2013 12:06:56 +0000 (13:06 +0100)
While adding support for running tests that are supposed to fail,
I broke support for skipping tests altogether. After the split()
on the line the result is of course a list, which in the case of
a single "skip" entry needs to be dereferenced instead of appending
a list to a list as a list item.

Change-Id: Ifd27ee4f762ab092a7333b286ca187309cd631ab
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
tests/test262.py

index 45bbdbe..a348dff 100755 (executable)
@@ -65,7 +65,7 @@ class TestExpectations:
                 continue
             record = line.split()
             if len(record) == 1:
-                self.testsToSkip.append(record)
+                self.testsToSkip.append(record[0])
             else:
                 test = record[0]
                 expectation = record[1]