Skip to content

Commit

Permalink
fix up test case to just one extra target and fix flake8 error
Browse files Browse the repository at this point in the history
  • Loading branch information
p3ck committed Jul 6, 2018
1 parent 23729fb commit cb4d1a0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
7 changes: 3 additions & 4 deletions config/Dockerfiles/tests.d/beaker/02_beaker_distro
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,14 @@ DISTRO=${1}
PROVIDER=${2}

PINFILE="PinFile.${PROVIDER}.yml"
DTARGET="beaker-distro"
FTARGET="beaker-family"
TARGET="beaker-family"
TMP_FILE=$(mktemp)

function clean_up {
set +e
linchpin -w . -p "${PINFILE}" -v destroy "${DTARGET}" "${FTARGET}"
linchpin -w . -p "${PINFILE}" -v destroy "${TARGET}"
}
trap clean_up EXIT SIGHUP SIGINT SIGTERM

pushd docs/source/examples/workspace
linchpin -w . -p "${PINFILE}" -v up "${DTARGET}" "${FTARGET}"
linchpin -w . -p "${PINFILE}" -v up "${TARGET}"
3 changes: 2 additions & 1 deletion linchpin/provision/library/bkr_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ def provision(self, *args, **kwargs):
# all other filters are ignored if the hostname is forced,
# so the use of 'force' is mutually exclusive with the use
# of any other 'hostRequires' filters
hostrequires_node.setAttribute('force', requirement['force'])
hostrequires_node.setAttribute('force',
requirement['force'])
elif 'rawxml' in requirement:
requirement_node = xml.dom.minidom.parseString(
requirement['rawxml']).documentElement
Expand Down

0 comments on commit cb4d1a0

Please sign in to comment.