From 284773caf2434586dbacd0823107e676c69a5666 Mon Sep 17 00:00:00 2001 From: Yvan Roux Date: Wed, 6 Apr 2016 19:52:22 +1000 Subject: * lib/remote.exp (remnote_download): Create a remote directory if needed and use it. (remote_exec): Execute program inside remotedir when it exists. (standard_load): Set remotedir board field if not present. * config/unix.exp (unix_load): Handle remotedir in board field. (remotedir): Set board info field. * doc/dejagnu.texi (Board File Values): Document remotedir. Signed-off-by: Ben Elliston --- config/unix.exp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'config') diff --git a/config/unix.exp b/config/unix.exp index c9d80dc..6a0ff72 100644 --- a/config/unix.exp +++ b/config/unix.exp @@ -97,7 +97,7 @@ proc unix_load { dest prog args } { setenv SHLIB_PATH $orig_ld_library_path } } else { - set remotefile "/tmp/[file tail $prog].[pid]" + set remotefile [file tail $prog] set remotefile [remote_download $dest $prog $remotefile] if { $remotefile == "" } { verbose -log "Download of $prog to [board_info $dest name] failed." 3 @@ -145,4 +145,5 @@ proc unix_load { dest prog args } { return [list $result $output] } +set_board_info remotedir "/tmp/runtest.[pid]" set_board_info protocol "unix" -- cgit v1.2.3