[flang][tests] Fix Python bug in the lit config
authorAndrzej Warzynski <andrzej.warzynski@arm.com>
Sat, 24 Oct 2020 16:04:25 +0000 (17:04 +0100)
committerAndrzej Warzynski <andrzej.warzynski@arm.com>
Sat, 24 Oct 2020 16:04:25 +0000 (17:04 +0100)
Without this change LIT tests for Flang fail with:
```
TypeError: append() takes exactly one argument (2 given)
```

flang/test/lit.cfg.py

index 77b2671..6d33c21 100644 (file)
@@ -43,7 +43,8 @@ config.excludes = ['Inputs', 'CMakeLists.txt', 'README.txt', 'LICENSE.txt']
 if config.include_flang_new_driver_test:
   config.available_features.add('new-flang-driver')
 else:
-  config.excludes.append('Flang-Driver','Frontend')
+  config.excludes.append('Flang-Driver')
+  config.excludes.append('Frontend')
 
 # test_source_root: The root path where tests are located.
 config.test_source_root = os.path.dirname(__file__)