Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleaning running atests. Not yet ready but getting there... #2091
- Loading branch information
1 parent
05d0068
commit ee232b9
Showing
21 changed files
with
117 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
*** Settings *** | ||
Suite Setup Set Variables unit | ||
Force Tags no-standalone | ||
Resource atest_resource.robot | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,23 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
import os | ||
|
||
def difference_between_stuff(file1, file2): | ||
with open(file1) as f1: | ||
|
||
def reports_should_be_equal(file1, file2): | ||
with open(file1.replace('/', os.sep)) as f1: | ||
content1 = f1.readlines() | ||
with open(file2) as f2: | ||
with open(file2.replace('/', os.sep)) as f2: | ||
content2 = f2.readlines() | ||
for l1,l2 in zip(content1, content2): | ||
if 'generatedTimestamp' in l1: | ||
continue | ||
if 'generatedMillis' in l1: | ||
continue | ||
if l1 != l2: | ||
for l1, l2 in zip(content1, content2): | ||
if not _lines_are_equal(l1, l2): | ||
raise AssertionError('%r\n is not same as\n%r' % (l1, l2)) | ||
if len(content1) != len(content2): | ||
raise AssertionError("file %r len %d is different " | ||
"than file %r len %d" % | ||
(file1, len(content1), | ||
file2, len(content2))) | ||
|
||
|
||
def _lines_are_equal(line1, line2): | ||
for changing in ('generatedTimestamp', 'generatedMillis'): | ||
if changing in line1 and changing in line2: | ||
return True | ||
return line1 == line2 |
Oops, something went wrong.