Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: kevin <[email protected]>
  • Loading branch information
khluu committed Sep 26, 2024
1 parent be93571 commit 4bb3790
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/tests/pipeline_generator/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

def test_get_kubernetes_plugin_config():
docker_image_path = "test_image:latest"
test_bash_command = ["echo", "Hello, Kubernetes!"]
test_bash_command = ["bash", "-c", "echo A"]
num_gpus = 1

expected_config = {
Expand All @@ -20,7 +20,7 @@ def test_get_kubernetes_plugin_config():
"containers": [
{
"image": docker_image_path,
"command": [" ".join(test_bash_command)],
"command": ['bash -c "echo A"'],
"resources": {"limits": {"nvidia.com/gpu": num_gpus}},
"volumeMounts": [
{"name": "devshm", "mountPath": "/dev/shm"},
Expand Down

0 comments on commit 4bb3790

Please sign in to comment.