Skip to content

Commit 882589e

Browse files
misanjumnspoorthys1303
authored andcommitted
Fix avocado-misc-tests repo check issue
The command to check if the avocado-misc-tests repo is correct and matches the name was failing due to trailing and extra quote characters. Replacing the same with brackets is solving the issue Signed-off-by: Misbah Anjum N <misanjumn@ibm.com>
1 parent 3c13e3f commit 882589e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

avocado-setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,8 @@ def get_repo(repo, basepath):
257257
if not os.path.isdir(repo_path):
258258
cmd = "%s && cd %s" % (cmd_clone, repo_path)
259259
else:
260-
cmd = "cd %s && [ %s = \"$(git remote get-url origin)\" ] && echo \"Repo matches\" && exit 0 \" \
261-
|| echo \"Repo does not match\" && exit 1 \"" % (repo_path, repo[0])
260+
cmd = "cd %s && [ %s = \"$(git remote get-url origin)\" ] && (echo \"Repo matches\" && exit 0) \
261+
|| (echo \"Repo does not match\" && exit 1)" % (repo_path, repo[0])
262262

263263
helper.runcmd(cmd, err_str="Failed to clone %s repository:, Please clean environment" % repo_name)
264264

0 commit comments

Comments
 (0)