Fix functional shell tests in travis
Hostname in travis contains random numbers meaning that it occasionally may contain a PID as well. Thus it must be replaced first.
This commit is contained in:
parent
49d8376845
commit
a590e100a2
|
@ -29,9 +29,9 @@ with codecs.open(fname, 'r', encoding='utf-8') as R:
|
|||
line = line.translate({
|
||||
ord('\r'): None
|
||||
})
|
||||
line = line.replace(pid, 'PID')
|
||||
line = line.replace(hostname, 'HOSTNAME')
|
||||
line = line.replace(user, 'USER')
|
||||
line = line.replace(pid, 'PID')
|
||||
W.write(line)
|
||||
|
||||
os.rename(new_fname, fname)
|
||||
|
|
Loading…
Reference in New Issue