diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-09-12 17:08:25 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-09-12 17:08:25 +0200 |
| commit | 6026876cdfd8ffb1bde3c98e97bb7ba05ff4e4ae (patch) | |
| tree | a625aa9203063b59600d6082b3bccc82fff5fda3 /src/suite/suite.py | |
| parent | 75f6b134911e378cb384e41fd0b9f717341acb2d (diff) | |
| download | minishell_test-6026876cdfd8ffb1bde3c98e97bb7ba05ff4e4ae.tar.gz minishell_test-6026876cdfd8ffb1bde3c98e97bb7ba05ff4e4ae.tar.bz2 minishell_test-6026876cdfd8ffb1bde3c98e97bb7ba05ff4e4ae.zip | |
Moved parenthesis and operation in flow, Added sandbox context, Replaced subprocess wait by communicate to avoid dead lock
Diffstat (limited to 'src/suite/suite.py')
| -rw-r--r-- | src/suite/suite.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/suite/suite.py b/src/suite/suite.py index ee13268..63421f6 100644 --- a/src/suite/suite.py +++ b/src/suite/suite.py @@ -6,7 +6,7 @@ # By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2020/07/15 18:24:29 by charles #+# #+# # -# Updated: 2020/09/12 10:53:42 by charles ### ########.fr # +# Updated: 2020/09/12 17:07:00 by charles ### ########.fr # # # # ############################################################################ # @@ -40,8 +40,8 @@ class Suite: continue matches = [n for n in suite_names if n.find("/") != -1 - and n[n.find("/") + 1:].startswith(name) - or n.startswith(name)] + and n[n.find("/") + 1:].startswith(name) + or n.startswith(name)] if len(matches) == 1: names.append(matches[0]) elif len(matches) != 0 and all([n.startswith(name) for n in matches]): @@ -61,10 +61,10 @@ class Suite: [s for s in cls.available if s.name in names] + [s for s in cls.available if any([g for g in s.groups if g in names])] )) + cls.available.sort(key=lambda s: s.name) for s in cls.available: s.generator_func() - @classmethod def available_names(cls) -> [str]: """List of available suites names""" |
