1# Check that we do not crash if a parallelism group is set to None. Permits 2# usage of the following pattern. 3# 4# [lit.common.cfg] 5# lit_config.parallelism_groups['my_group'] = None 6# if <condition>: 7# lit_config.parallelism_groups['my_group'] = 3 8# 9# [project/lit.cfg] 10# config.parallelism_group = 'my_group' 11# 12# Note: We need at least 2 tests to prevent lit from using "single process 13# mode", which ignores parallelism groups. 14# 15 16# RUN: %{lit} -j2 %{inputs}/parallelism-groups | FileCheck %s 17 18# CHECK: -- Testing: 2 tests, 2 workers -- 19# CHECK-DAG: PASS: parallelism-groups :: test1.txt 20# CHECK-DAG: PASS: parallelism-groups :: test2.txt 21# CHECK: Expected Passes : 2 22