Skip to content

Commit

Permalink
fix: ram units (#3730)
Browse files Browse the repository at this point in the history
* fix: ram units

* chore: adding changelog file 3730.fixed.md [dependabot-skip]

---------

Co-authored-by: pyansys-ci-bot <[email protected]>
  • Loading branch information
germa89 and pyansys-ci-bot committed Feb 14, 2025
1 parent 4d364dd commit 062ac32
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions doc/changelog.d/3730.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fix: ram units
12 changes: 6 additions & 6 deletions tests/test_launcher/test_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def test_generate_mapdl_launch_command_windows():
jobname = "myjob"
nproc = 10
port = 1000
ram = 2
ram = 2024
additional_switches = "-my_add=switch"

cmd = generate_mapdl_launch_command(
Expand All @@ -218,7 +218,7 @@ def test_generate_mapdl_launch_command_windows():
assert "-port" in cmd
assert f"{port}" in cmd
assert "-m" in cmd
assert f"{ram*1024}" in cmd
assert f"{ram}" in cmd
assert "-np" in cmd
assert f"{nproc}" in cmd
assert "-grpc" in cmd
Expand All @@ -233,7 +233,7 @@ def test_generate_mapdl_launch_command_windows():
assert f"{exec_file}" in cmd
assert f" -j {jobname} " in cmd
assert f" -port {port} " in cmd
assert f" -m {ram*1024} " in cmd
assert f" -m {ram} " in cmd
assert f" -np {nproc} " in cmd
assert " -grpc" in cmd
assert f" {additional_switches} " in cmd
Expand All @@ -249,7 +249,7 @@ def test_generate_mapdl_launch_command_linux():
jobname = "myjob"
nproc = 10
port = 1000
ram = 2
ram = 2024
additional_switches = "-my_add=switch"

cmd = generate_mapdl_launch_command(
Expand All @@ -271,7 +271,7 @@ def test_generate_mapdl_launch_command_linux():
assert "-port" in cmd
assert f"{port}" in cmd
assert "-m" in cmd
assert f"{ram*1024}" in cmd
assert f"{ram}" in cmd
assert "-np" in cmd
assert f"{nproc}" in cmd
assert "-grpc" in cmd
Expand All @@ -287,7 +287,7 @@ def test_generate_mapdl_launch_command_linux():
assert f"{exec_file} " in cmd
assert f" -j {jobname} " in cmd
assert f" -port {port} " in cmd
assert f" -m {ram*1024} " in cmd
assert f" -m {ram} " in cmd
assert f" -np {nproc} " in cmd
assert " -grpc" in cmd
assert f" {additional_switches} " in cmd
Expand Down

0 comments on commit 062ac32

Please sign in to comment.