further fixes to rename only where required (#35432)

pull/35434/head
Jordan Borean 7 years ago committed by GitHub
parent d902bd39a3
commit 9ee079f34d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -32,9 +32,6 @@ fixture_data = {}
def load_fixture(name):
# convert illegal filenames (both unix and windows to another char)
name = name.replace(':', '_semicolon_')
path = os.path.join(fixture_path, name)
if path in fixture_data:

@ -61,6 +61,7 @@ class TestDellos10Facts(TestDellos10Module):
command = str(command).replace('|', '')
filename = str(command).replace(' ', '_')
filename = filename.replace('/', '7')
filename = filename.replace(':', '_colon_')
output.append(load_fixture(filename))
return output

Loading…
Cancel
Save