Skip to content

Commit

Permalink
virtualx.eclass: Add verbose warning about nonfatal call
Browse files Browse the repository at this point in the history
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=517976

Signed-off-by: Justin Lecher <[email protected]>
  • Loading branch information
jlec committed Dec 7, 2015
1 parent ad2a62b commit b016e3f
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions eclass/virtualx.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,16 @@ virtualmake() {
# @DESCRIPTION:
# Start new Xvfb session and run commands in it.
#
# IMPORTANT: The command is run nonfatal !!!
#
# This means we are checking for the return code and raise an exception if it
# isn't 0. So you need to make sure that all commands return a proper
# code and not just die. All eclass function used should support nonfatal
# calls properly.
#
# The rational behind this is the tear down of the started Xfvb session. A
# straight die would leave a running session behind.
#
# Example:
#
# @CODE
Expand All @@ -124,6 +134,17 @@ virtualmake() {
# virtx py.test --verbose
# }
# @CODE
#
# @CODE
# my_test() {
# some_command
# return $?
# }
#
# src_test() {
# virtx my_test
# }
# @CODE
virtx() {
debug-print-function ${FUNCNAME} "$@"

Expand Down

0 comments on commit b016e3f

Please sign in to comment.