aboutsummaryrefslogtreecommitdiff
path: root/src/main.py
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-09-13 12:03:45 +0200
committerCharles Cabergs <me@cacharle.xyz>2020-09-13 12:07:50 +0200
commit372f432cda719dab45ebc50464f448017beacbe1 (patch)
treebc939324ccedd1d33b06ffe2ad9ecd17bee3678a /src/main.py
parent740b810ab1aaa3506d004d01f21e3cfc270fbcfc (diff)
downloadminishell_test-372f432cda719dab45ebc50464f448017beacbe1.tar.gz
minishell_test-372f432cda719dab45ebc50464f448017beacbe1.tar.bz2
minishell_test-372f432cda719dab45ebc50464f448017beacbe1.zip
Added env variable for reference shell arguments
Diffstat (limited to 'src/main.py')
-rwxr-xr-xsrc/main.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.py b/src/main.py
index efdfc2f..1c652b6 100755
--- a/src/main.py
+++ b/src/main.py
@@ -50,6 +50,10 @@ def main():
shutil.copy(distutils.spawn.find_executable(cmd),
os.path.join(config.EXECUTABLES_PATH, cmd))
+ reference_args = os.environ.get("MINISHELL_TEST_ARGS")
+ if reference_args is not None:
+ config.REFERENCE_ARGS.extend(reference_args.split(','))
+
config.VERBOSE_LEVEL = args.verbose
if args.bonus or os.environ.get("MINISHELL_TEST_BONUS") == "yes":
config.BONUS = True