remote_file host delete $tfile_basic
remote_file target delete $tfile_basic
-remote_exec target "$binfile"
-
-if {!$purely_local} {
- # Copy tracefile from target to host.
- remote_download host [remote_upload target tfile-basic.tf] \
- tfile-basic.tf
-}
-
proc test_tfind_tfile { } {
with_test_prefix "tfile" {
global binfile
}
}
-test_tfind_tfile
+# If tracefile is generated successfully, copy tracefile to host and
+# run tests.
+if [generate_tracefile $binfile] {
+ if {!$purely_local} {
+ # Copy tracefile from target to host.
+ remote_download host [remote_upload target tfile-basic.tf] \
+ tfile-basic.tf
+ }
+
+ test_tfind_tfile
+}
# Change to a different test case in order to run it on target, and get
# several traceframes.