Skip to content

Commit fdefef3

Browse files
committed
execltp: Strip newlines from fd.readlines()
Othewise the paths to the runtest files ends up with newline which causes the script fail with ENOENT when attempting to open the files. Reported-by: Daniel Sangorrin <[email protected]> Signed-off-by: Cyril Hrubis <[email protected]> Tested-by: Daniel Sangorrin <[email protected]>
1 parent 8cce5de commit fdefef3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

execltp.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ def main():
309309
# Default to scenarios also used by runltp.
310310
fd = open(os.path.join(ltpdir, 'scenario_groups/default'), 'r')
311311
try:
312-
args = fd.readlines()
312+
args = [l.strip() for l in fd.readlines()]
313313
finally:
314314
fd.close()
315315

0 commit comments

Comments
 (0)