b10e43c ipatests: strip newline character when getting name of temp file

Authored and Committed by sorlov 4 years ago
    ipatests: strip newline character when getting name of temp file
    
    Function create_temp_file was returning unprocessed output of mktemp
    command, which contains a trailing newline. Callers which tryed to write
    to the temp file were creating a new one instead.
    
    Reviewed-By: Michal Polovka <mpolovka@redhat.com>