[lib] deployment: fix a bug in infile test