From f0affb071bb3bdf62f649ef5278545ed283db73d Mon Sep 17 00:00:00 2001 From: Javier Cladellas Date: Fri, 20 Dec 2024 11:08:39 +0100 Subject: [PATCH] up test for memory option #166 --- tests/configtest/test_commandBuilder.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/configtest/test_commandBuilder.py b/tests/configtest/test_commandBuilder.py index 18dbdc51..6addfdef 100644 --- a/tests/configtest/test_commandBuilder.py +++ b/tests/configtest/test_commandBuilder.py @@ -112,6 +112,7 @@ def test_buildExecutionMode(self,cmd_builder,parser): def test_buildCommand(self,cmd_builder,machine_config,parser): """Tests the buildCommand method of the CommandBuilder""" timeout = "0-00:01:00" + memory = "250G" executable ="test_executable" use_case ="test_use_case" @@ -127,10 +128,11 @@ def test_buildCommand(self,cmd_builder,machine_config,parser): f"--exec-policy={machine_config.execution_policy} " f"--prefix={machine_config.reframe_base_dir} " f"--report-file={str(os.path.join(report_folder_path,'reframe_report.json'))} " - f"-J '#SBATCH --time={timeout}' " + f"-J time={timeout} " + f"-J mem={memory} " f"--perflogdir={os.path.join(machine_config.reframe_base_dir,'logs')} " ) expected_command += "-" + "v"*parser.args.verbose if parser.args.verbose else "" expected_command += " --dry-run" if parser.args.dry_run else " -r" - assert expected_command == cmd_builder.buildCommand(timeout) \ No newline at end of file + assert expected_command == cmd_builder.buildCommand(timeout,memory) \ No newline at end of file