Code Review
/
yardstick.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Open storperf testcase to huawei-pod2"
[yardstick.git]
/
yardstick
/
benchmark
/
scenarios
/
availability
/
attacker
/
attacker_process.py
diff --git
a/yardstick/benchmark/scenarios/availability/attacker/attacker_process.py
b/yardstick/benchmark/scenarios/availability/attacker/attacker_process.py
index
e0e6cf3
..
cb171ea
100644
(file)
--- a/
yardstick/benchmark/scenarios/availability/attacker/attacker_process.py
+++ b/
yardstick/benchmark/scenarios/availability/attacker/attacker_process.py
@@
-47,11
+47,11
@@
class ProcessAttacker(BaseAttacker):
stdin=stdin_file)
if stdout:
stdin=stdin_file)
if stdout:
- LOG.info("check the env
rio
ment success!")
+ LOG.info("check the env
iron
ment success!")
return int(stdout.strip('\n'))
else:
LOG.error(
return int(stdout.strip('\n'))
else:
LOG.error(
- "the host env
rio
ment is error, stdout:%s, stderr:%s",
+ "the host env
iron
ment is error, stdout:%s, stderr:%s",
stdout, stderr)
return False
stdout, stderr)
return False
@@
-66,3
+66,5
@@
class ProcessAttacker(BaseAttacker):
exit_status, stdout, stderr = self.connection.execute(
"sudo /bin/bash -s {0} ".format(self.service_name),
stdin=stdin_file)
exit_status, stdout, stderr = self.connection.execute(
"sudo /bin/bash -s {0} ".format(self.service_name),
stdin=stdin_file)
+ if exit_status:
+ LOG.info("Fail to restart service!")