summaryrefslogtreecommitdiffstats
path: root/SCons/Taskmaster
diff options
context:
space:
mode:
authorAndrew Morrow <andrew.morrow@viam.com>2024-01-20 22:18:51 (GMT)
committerAndrew Morrow <andrew.morrow@viam.com>2024-01-20 22:18:51 (GMT)
commit3ced491dc5ff8871ef2a72f575f6c44da42b7409 (patch)
treee02423fcfc7b71484ccceeb667f7bff5b9ef3434 /SCons/Taskmaster
parente4e128a70ea7659b95c5edcc713436683d9a2cca (diff)
downloadSCons-3ced491dc5ff8871ef2a72f575f6c44da42b7409.zip
SCons-3ced491dc5ff8871ef2a72f575f6c44da42b7409.tar.gz
SCons-3ced491dc5ff8871ef2a72f575f6c44da42b7409.tar.bz2
review feedback: legacysched to legacy_sched
Diffstat (limited to 'SCons/Taskmaster')
-rw-r--r--SCons/Taskmaster/Job.py4
-rw-r--r--SCons/Taskmaster/JobTests.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/SCons/Taskmaster/Job.py b/SCons/Taskmaster/Job.py
index 60992be..3bcc803 100644
--- a/SCons/Taskmaster/Job.py
+++ b/SCons/Taskmaster/Job.py
@@ -74,7 +74,7 @@ class Jobs:
def __init__(self, num, taskmaster) -> None:
"""
Create 'num' jobs using the given taskmaster. The exact implementation
- used varies with the number of jobs requested and the state of the `legacysched` flag
+ used varies with the number of jobs requested and the state of the `legacy_sched` flag
to `--experimental`.
"""
@@ -88,7 +88,7 @@ class Jobs:
stack_size = default_stack_size
experimental_option = GetOption('experimental') or []
- if 'legacysched' in experimental_option:
+ if 'legacy_sched' in experimental_option:
if num > 1:
self.job = LegacyParallel(taskmaster, num, stack_size)
else:
diff --git a/SCons/Taskmaster/JobTests.py b/SCons/Taskmaster/JobTests.py
index 52118d9..3743866 100644
--- a/SCons/Taskmaster/JobTests.py
+++ b/SCons/Taskmaster/JobTests.py
@@ -483,7 +483,7 @@ class SerialTaskTest(_SConsTaskTest):
self._test_seq(1)
# Now run test with LegacyParallel
- OptionsParser.values.experimental=['legacysched']
+ OptionsParser.values.experimental=['legacy_sched']
self._test_seq(1)
class ParallelTaskTest(_SConsTaskTest):
@@ -492,7 +492,7 @@ class ParallelTaskTest(_SConsTaskTest):
self._test_seq(num_jobs)
# Now run test with LegacyParallel
- OptionsParser.values.experimental=['legacysched']
+ OptionsParser.values.experimental=['legacy_sched']
self._test_seq(num_jobs)