From c9201fab87b545621e3266f9add6c2cde7cf237f Mon Sep 17 00:00:00 2001 From: James Hughes Date: Tue, 4 Feb 2025 16:41:42 -0800 Subject: [PATCH] copy folder over not individual files --- .../packaging-scripts/cicd-tests/happypath-test.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packaging/technical-addon/packaging-scripts/cicd-tests/happypath-test.sh b/packaging/technical-addon/packaging-scripts/cicd-tests/happypath-test.sh index 3410df3877..8788901743 100755 --- a/packaging/technical-addon/packaging-scripts/cicd-tests/happypath-test.sh +++ b/packaging/technical-addon/packaging-scripts/cicd-tests/happypath-test.sh @@ -25,8 +25,7 @@ else fi while [ $ATTEMPT -le $MAX_ATTEMPTS ]; do # Copy logs from container - scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -r -i ~/.orca/id_rsa "splunk@$ip_addr:/opt/splunk/var/log/splunk/otel.log" "$TEST_FOLDER/otel.log" - scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -r -i ~/.orca/id_rsa "splunk@$ip_addr:/opt/splunk/var/log/splunk/Splunk_TA_otel.log" "$TEST_FOLDER/Splunk_TA_otel.log" + scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -r -i ~/.orca/id_rsa "splunk@$ip_addr:/opt/splunk/var/log/splunk/" "$TEST_FOLDER" if grep -q "Starting otel agent" "$TEST_FOLDER/Splunk_TA_otel.log" && grep -q "Everything is ready" "$TEST_FOLDER/otel.log"; then break