mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-22 14:52:17 +01:00
fix run replication bug in nightly (#4402)
This commit is contained in:
parent
230bb89d1e
commit
3215d328aa
@ -40,6 +40,20 @@ def execute(harbor_endpoints, vm_names, harbor_root_pwd, test_suite, auth_mode ,
|
|||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
exe_result = p.returncode
|
exe_result = p.returncode
|
||||||
|
|
||||||
|
if test_suite == 'Replication':
|
||||||
|
cmd = cmd + "/drone/tests/robot-cases/Group11-Nightly/Replication.robot"
|
||||||
|
|
||||||
|
logger.info(cmd)
|
||||||
|
p = subprocess.Popen(cmd, shell=True, stderr=subprocess.PIPE)
|
||||||
|
while True:
|
||||||
|
out = p.stderr.read(1)
|
||||||
|
if out == '' and p.poll() != None:
|
||||||
|
break
|
||||||
|
if out != '':
|
||||||
|
sys.stdout.write(out)
|
||||||
|
sys.stdout.flush()
|
||||||
|
exe_result = p.returncode
|
||||||
|
|
||||||
if test_suite == 'Longevity':
|
if test_suite == 'Longevity':
|
||||||
cmd = cmd + "/drone/tests/robot-cases/Group12-Longevity/Longevity.robot > /dev/null 2>&1"
|
cmd = cmd + "/drone/tests/robot-cases/Group12-Longevity/Longevity.robot > /dev/null 2>&1"
|
||||||
logger.info(cmd)
|
logger.info(cmd)
|
||||||
|
Loading…
Reference in New Issue
Block a user