@@ -48,8 +48,7 @@ def stress_ng_cpu(node):
48
48
# stress-ng reports on stderr only
49
49
LOG .info (err )
50
50
except (processutils .ProcessExecutionError , OSError ) as e :
51
- error_msg = ("stress-ng (cpu) failed with error %(err)s" ,
52
- {'err' : e })
51
+ error_msg = "stress-ng (cpu) failed with error %s" % e
53
52
LOG .error (error_msg )
54
53
raise errors .CommandExecutionError (error_msg )
55
54
@@ -80,8 +79,7 @@ def stress_ng_vm(node):
80
79
# stress-ng reports on stderr only
81
80
LOG .info (err )
82
81
except (processutils .ProcessExecutionError , OSError ) as e :
83
- error_msg = ("stress-ng (vm) failed with error %(err)s" ,
84
- {'err' : e })
82
+ error_msg = "stress-ng (vm) failed with error %s" % e
85
83
LOG .error (error_msg )
86
84
raise errors .CommandExecutionError (error_msg )
87
85
@@ -116,8 +114,7 @@ def fio_disk(node):
116
114
# fio reports on stdout
117
115
LOG .info (out )
118
116
except (processutils .ProcessExecutionError , OSError ) as e :
119
- error_msg = ("fio (disk) failed with error %(err)s" ,
120
- {'err' : e })
117
+ error_msg = "fio (disk) failed with error %s" % e
121
118
LOG .error (error_msg )
122
119
raise errors .CommandExecutionError (error_msg )
123
120
@@ -141,8 +138,7 @@ def _do_fio_network(writer, runtime, partner):
141
138
LOG .info (out )
142
139
break
143
140
except (processutils .ProcessExecutionError , OSError ) as e :
144
- error_msg = ("fio (network) failed with error %(err)s" ,
145
- {'err' : e })
141
+ error_msg = "fio (network) failed with error %s" % e
146
142
LOG .error (error_msg )
147
143
# while the writer blocks in fio, the reader fails with
148
144
# 'Connection {refused, timeout}' errors if the partner
@@ -186,7 +182,7 @@ def fio_network(node):
186
182
187
183
role = config .get ('role' )
188
184
if role not in NETWORK_BURNIN_ROLES :
189
- error_msg = ( "fio (network) found an unknown role: %s" , role )
185
+ error_msg = "fio (network) found an unknown role: %s" % role
190
186
raise errors .CleaningError (error_msg )
191
187
192
188
partner = config .get ('partner' )
0 commit comments