Skip to content

Commit

Permalink
skip files which do not have the corresponding stderr and stdout files
Browse files Browse the repository at this point in the history
these are likely just include files, not real tests
  • Loading branch information
Ladislav Slezak committed Jun 13, 2013
1 parent 645e3de commit 1a71677
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions package/yast2-testsuite.changes
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Jun 13 13:36:57 UTC 2013 - lslezak@suse.cz

- skip files which do not have the corresponding stderr and stdout
files, these are likely just include files, not real tests

-------------------------------------------------------------------
Thu May 16 13:26:32 UTC 2013 - mvidner@suse.com

Expand Down
7 changes: 7 additions & 0 deletions skel/unix.exp
Expand Up @@ -53,6 +53,13 @@ proc testsuite-run { src } {
set options "-I $sourcedir -M $sourcedir"
}

# skip the file if there is no stderr and stdout file,
# it is likely just an include file which should not be executed
if {[expr ![file exists $stderr_name]] && [expr ![file exists $stdout_name]]} {
puts "Skipping file $fname ..."
return 0
}

puts "Running $base_name ..."

# run the test
Expand Down

0 comments on commit 1a71677

Please sign in to comment.