Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 338970
b: refs/heads/master
c: d4fcf0a
h: refs/heads/master
v: v3
  • Loading branch information
Jiri Olsa authored and Arnaldo Carvalho de Melo committed Nov 8, 2012
1 parent 2de1bea commit abc01f4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 580e338d7e9dc4947cba2e1021e78e76ebe0869e
refs/heads/master: d4fcf0a8b96b23a245a21065c9424e09c8080819
30 changes: 16 additions & 14 deletions trunk/tools/perf/tests/attr.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,24 +228,26 @@ def resolve_groups(self, events):
def run(self):
tempdir = tempfile.mkdtemp();

# run the test script
self.run_cmd(tempdir);
try:
# run the test script
self.run_cmd(tempdir);

# load events expectation for the test
log.info(" loading result events");
for f in glob.glob(tempdir + '/event*'):
self.load_events(f, self.result);
# load events expectation for the test
log.info(" loading result events");
for f in glob.glob(tempdir + '/event*'):
self.load_events(f, self.result);

# resolve group_fd to event names
self.resolve_groups(self.expect);
self.resolve_groups(self.result);
# resolve group_fd to event names
self.resolve_groups(self.expect);
self.resolve_groups(self.result);

# do the expectation - results matching - both ways
self.compare(self.expect, self.result)
self.compare(self.result, self.expect)
# do the expectation - results matching - both ways
self.compare(self.expect, self.result)
self.compare(self.result, self.expect)

# cleanup
shutil.rmtree(tempdir)
finally:
# cleanup
shutil.rmtree(tempdir)


def run_tests(options):
Expand Down

0 comments on commit abc01f4

Please sign in to comment.