cachestat: use raw strings to escape \d 85/34185/1
authorRoss Brattain <ross.b.brattain@intel.com>
Tue, 4 Apr 2017 06:46:21 +0000 (23:46 -0700)
committerJing Lu <lvjing5@huawei.com>
Thu, 4 May 2017 01:23:26 +0000 (01:23 +0000)
Change-Id: Iff40f7c938af0d7c148c708eed19095b140ccb8b
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
(cherry picked from commit 6bdf476e43200fefb09a11ea1f6312ca8735fd52)

yardstick/benchmark/scenarios/compute/cachestat.py

index b4c3463..8873b96 100644 (file)
@@ -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}