Commit b49a817b authored by Daniel Molkentin's avatar Daniel Molkentin
Browse files

Fixes for checkInstalledFiles script

- work on windows
- show unified instead of context diff

Change-Id: Id3ce927f9fdc9783ccb927bcac7d921941865023
Reviewed-by: default avatarBill King <>
parent 6340f5cf
......@@ -17,7 +17,7 @@ def referenceFile():
print "Unsupported platform: ", sys.platform
scriptDir = os.path.dirname(inspect.getfile(inspect.currentframe()))
return scriptDir+'/../tests/reference/'+filename
return os.path.join(scriptDir,'..','tests', 'reference', filename)
def readReferenceFile():
# read file with old diff
......@@ -76,7 +76,7 @@ def main():
print "Do not forget to commit", referenceFile()
hasDiff = False
for line in difflib.context_diff(readReferenceFile(), generateReference(rootdir), fromfile=referenceFile(), tofile="generated"):
for line in difflib.unified_diff(readReferenceFile(), generateReference(rootdir), fromfile=referenceFile(), tofile="generated"):
hasDiff = True
if hasDiff:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment