Skip to content

Commit c6402a0

Browse files
[integ-test] Fix test_cli_commands in iso regions
This commit fixes a bug from 7323fae Signed-off-by: Hanwen <hanwenli@amazon.com>
1 parent bd55b86 commit c6402a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integration-tests/tests/cli_commands/test_cli_commands.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def test_slurm_cli_commands(
4545
# Use long scale down idle time so we know nodes are terminated by pcluster stop
4646
cluster_config = pcluster_config_reader(scaledown_idletime=60)
4747

48-
if "alinux" not in os and "us-iso" in region: # The code does not know non-amazon vanilla AMIs IDs in iso regions
48+
if "alinux" in os or "us-iso" not in region: # The code does not know non-amazon vanilla AMIs IDs in iso regions
4949
# Using custom AMI not tagged by pcluser will generate a warning
5050
custom_ami = retrieve_latest_ami(region, os, ami_type="official", architecture="x86_64")
5151
config_file = "pcluster.config.with.warnings.yaml"
@@ -59,7 +59,7 @@ def test_slurm_cli_commands(
5959
_test_describe_cluster(cluster)
6060
_test_list_cluster(cluster.name, "CREATE_COMPLETE")
6161

62-
if "alinux" not in os and "us-iso" in region:
62+
if "alinux" in os or "us-iso" not in region:
6363
_test_update_with_warnings(cluster_config_with_warning, cluster)
6464
check_status(cluster, "CREATE_COMPLETE", "running", "RUNNING")
6565

0 commit comments

Comments
 (0)