From 0aca6d0938a6af66ce9e11789e54e5f71c75f658 Mon Sep 17 00:00:00 2001 From: Roy Crihfield Date: Sun, 19 Oct 2025 14:36:44 +0800 Subject: [PATCH] patch --- stack_orchestrator/deploy/deployment_create.py | 2 +- tests/deploy/run-deploy-test.sh | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/stack_orchestrator/deploy/deployment_create.py b/stack_orchestrator/deploy/deployment_create.py index 293aeb2d..5daffad8 100644 --- a/stack_orchestrator/deploy/deployment_create.py +++ b/stack_orchestrator/deploy/deployment_create.py @@ -445,7 +445,7 @@ def _check_volume_definitions(spec): @click.option("--deployment-dir", help="Create deployment files in this directory") @click.argument('extra_args', nargs=-1, type=click.UNPROCESSED) @click.pass_context -def create(ctx, spec_file, deployment_dir, sync, extra_args): +def create(ctx, spec_file, deployment_dir, extra_args): deployment_command_context = ctx.obj return create_operation(deployment_command_context, spec_file, deployment_dir, extra_args) diff --git a/tests/deploy/run-deploy-test.sh b/tests/deploy/run-deploy-test.sh index fb574b03..c18c5cb0 100755 --- a/tests/deploy/run-deploy-test.sh +++ b/tests/deploy/run-deploy-test.sh @@ -14,8 +14,13 @@ delete_cluster_exit () { # Test basic stack-orchestrator deploy echo "Running stack-orchestrator deploy test" -# Bit of a hack, test the most recent package -TEST_TARGET_SO=$( ls -t1 ./package/laconic-so* | head -1 ) + +if [ "$1" == "from-path" ]; then + TEST_TARGET_SO="laconic-so" +else + TEST_TARGET_SO=$( ls -t1 ./package/laconic-so* | head -1 ) +fi + # Set a non-default repo dir export CERC_REPO_BASE_DIR=~/stack-orchestrator-test/repo-base-dir echo "Testing this package: $TEST_TARGET_SO"