aboutsummaryrefslogtreecommitdiff
path: root/src/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.py')
-rwxr-xr-xsrc/main.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.py b/src/main.py
index 1c652b6..4ba5128 100755
--- a/src/main.py
+++ b/src/main.py
@@ -54,6 +54,10 @@ def main():
if reference_args is not None:
config.REFERENCE_ARGS.extend(reference_args.split(','))
+ pager = os.environ.get("MINISHELL_TEST_PAGER")
+ if pager is not None:
+ config.PAGER = pager
+
config.VERBOSE_LEVEL = args.verbose
if args.bonus or os.environ.get("MINISHELL_TEST_BONUS") == "yes":
config.BONUS = True
@@ -69,6 +73,9 @@ def main():
Suite.save_log()
print("See", config.LOG_PATH, "for more information")
+ if args.pager:
+ subprocess.run([config.PAGER, config.LOG_PATH])
+
if __name__ == "__main__":
main()