Skip to content

Commit 8f483d4

Browse files
author
Taniya Mathur
committed
Fix path construction to avoid double slashes in CLI smoketest
1 parent 3b74df9 commit 8f483d4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/sdlc/idp-cli/src/idp_cli/service/smoketest_idp_cli_service.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ def do_smoketest(self):
2929

3030
# Install IDP CLI
3131
logger.info("Installing IDP CLI...")
32+
idp_cli_path = os.path.join(self.cwd, "idp_cli")
3233
subprocess.run([
33-
"pip", "install", "-e", f"{self.cwd}/idp_cli"
34+
"pip", "install", "-e", idp_cli_path
3435
], check=True, cwd=self.cwd)
3536

3637
# Deploy stack using idp-cli deploy
@@ -48,10 +49,11 @@ def do_smoketest(self):
4849

4950
# Run inference using IDP CLI with custom batch ID
5051
logger.info(f"Running inference with batch ID: {batch_id}...")
52+
samples_path = os.path.join(self.cwd, "samples/")
5153
subprocess.run([
5254
"idp-cli", "run-inference",
5355
"--stack-name", self.stack_name,
54-
"--dir", f"{self.cwd}/samples/",
56+
"--dir", samples_path,
5557
"--file-pattern", "lending_package.pdf",
5658
"--batch-id", batch_id,
5759
"--monitor"

0 commit comments

Comments
 (0)