Skip to content

Commit 05efeab

Browse files
authored
modify script
1 parent 1359595 commit 05efeab

File tree

1 file changed

+5
-8
lines changed
  • microservices/dlstreamer-pipeline-server/tests/scripts/common_library

1 file changed

+5
-8
lines changed

microservices/dlstreamer-pipeline-server/tests/scripts/common_library/dlsps_utils.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#
22
# Apache v2 license
3-
# Copyright (C) 2024 Intel Corporation
3+
# Copyright (C) 2024-2025 Intel Corporation
44
# SPDX-License-Identifier: Apache-2.0
55
#
66

7-
import os, sys, time, json, yaml, subprocess, os.path, requests
7+
import os, sys, time, json, yaml, logging, subprocess, os.path, requests
88
from collections import OrderedDict
99

1010
current_dir = os.path.abspath(os.path.dirname(__file__))
@@ -15,6 +15,7 @@
1515
os.path.abspath(os.path.join(current_dir, '../configs'))
1616
])
1717

18+
logging.basicConfig(level=logging.DEBUG)
1819
hostIP = subprocess.check_output("ip route get 1 | awk '{print $7}'|head -1", shell=True).decode('utf-8').strip()
1920

2021
base_source_uri = {"uri": "file:///home/pipeline-server/resources/videos/warehouse.avi", "type": "uri"}
@@ -243,12 +244,8 @@ def search_element(self, logFile, keyword):
243244

244245
def generate_repo_dlsps(self):
245246
os.chdir(repo_path)
246-
if self.is_open_edge:
247-
repo_url = "https://github.com/open-edge-platform/edge-ai-libraries/"
248-
destination_dir = os.path.join(repo_path, "edge-ai-libraries")
249-
else:
250-
repo_url = "https://github.com/intel-innersource/applications.services.esh.dlstreamer-pipeline-server ./dlstreamer-pipeline-server"
251-
destination_dir = os.path.join(repo_path, "dlstreamer-pipeline-server")
247+
repo_url = "https://github.com/open-edge-platform/edge-ai-libraries/"
248+
destination_dir = os.path.join(repo_path, "edge-ai-libraries")
252249
print(f"Cloning repository: {repo_url}")
253250
print(f"Destination directory: {destination_dir}")
254251

0 commit comments

Comments
 (0)