diff options
author | Ross Brattain <ross.b.brattain@intel.com> | 2017-04-03 23:46:21 -0700 |
---|---|---|
committer | Jing Lu <lvjing5@huawei.com> | 2017-05-04 01:23:26 +0000 |
commit | f293cda5a07a2bf38e2efd325c35af526c4cf10d (patch) | |
tree | 077df702b48c812041ffde5cc8a56934f341256c | |
parent | 6990400d9c020ed0f600e02141efec883593c6c6 (diff) |
cachestat: use raw strings to escape \d
Change-Id: Iff40f7c938af0d7c148c708eed19095b140ccb8b
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
(cherry picked from commit 6bdf476e43200fefb09a11ea1f6312ca8735fd52)
-rw-r--r-- | yardstick/benchmark/scenarios/compute/cachestat.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yardstick/benchmark/scenarios/compute/cachestat.py b/yardstick/benchmark/scenarios/compute/cachestat.py index b4c3463e5..8873b9683 100644 --- a/yardstick/benchmark/scenarios/compute/cachestat.py +++ b/yardstick/benchmark/scenarios/compute/cachestat.py @@ -103,7 +103,7 @@ class CACHEstat(base.Scenario): def _filtrate_result(self, result): fields = [] cachestat = {} - data_marker = re.compile("\d+") + data_marker = re.compile(r"\d+") ite = 0 average = {'HITS': 0, 'MISSES': 0, 'DIRTIES': 0, 'RATIO': 0, 'BUFFERS_MB': 0, 'CACHE_MB': 0} |