Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/atf/dist/atf-sh Undo previous; unfortunately th...



details:   https://anonhg.NetBSD.org/src/rev/c3611f5b59f3
branches:  trunk
changeset: 325865:c3611f5b59f3
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Jan 10 01:39:32 2014 +0000

description:
Undo previous; unfortunately the cleanup routine gets called in a different
shell so it can't cleanup stuff set in the environment of the first shell.
There are 2 problems:
        - calling the test routine directly does not cleanup (not using
          atf-run)
        - when using atf-run, the cleanup routine needs state from the
          running code which can only be stored in files. This will never
          allow us to run tests in parallel since we need to keep a known
          place to pass state.

diffstat:

 external/bsd/atf/dist/atf-sh/libatf-sh.subr |  1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diffs (11 lines):

diff -r 03388a32c95a -r c3611f5b59f3 external/bsd/atf/dist/atf-sh/libatf-sh.subr
--- a/external/bsd/atf/dist/atf-sh/libatf-sh.subr       Fri Jan 10 01:16:07 2014 +0000
+++ b/external/bsd/atf/dist/atf-sh/libatf-sh.subr       Fri Jan 10 01:39:32 2014 +0000
@@ -772,7 +772,6 @@
             _atf_syntax_error "Cannot provide more than one test case name"
         else
             _atf_run_tc "${1}"
-            _atf_run_tc "${1}:cleanup"
         fi
     fi
 }



Home | Main Index | Thread Index | Old Index