[Functest] Fix typo exiting with a ret_val variable