Update from upstream #11

Closed
soksanichenko wants to merge 158 commits from a8_updated into a8
3 changed files with 4 additions and 6 deletions
Showing only changes of commit ecb1646042 - Show all commits

View File

@ -12,8 +12,9 @@ happened. A JSON-encoded object will be passed to standard input to provide
more information about the event. At the very least, the object will contain a more information about the event. At the very least, the object will contain a
``compose_id`` key. ``compose_id`` key.
The script is invoked in compose directory and can read other information The notification script inherits working directory from the parent process and it
there. can be called from the same directory ``pungi-koji`` is called from. The working directory
is listed at the start of main log.
Currently these messages are sent: Currently these messages are sent:

View File

@ -81,9 +81,6 @@ class PungiNotifier(object):
self._update_args(kwargs) self._update_args(kwargs)
if self.compose:
workdir = self.compose.paths.compose.topdir()
with self.lock: with self.lock:
for cmd in self.cmds: for cmd in self.cmds:
self._run_script(cmd, msg, workdir, kwargs) self._run_script(cmd, msg, workdir, kwargs)

View File

@ -73,7 +73,7 @@ class TestNotifier(unittest.TestCase):
stdin_data=json.dumps(data), stdin_data=json.dumps(data),
can_fail=True, can_fail=True,
return_stdout=False, return_stdout=False,
workdir=self.compose.paths.compose.topdir.return_value, workdir=None,
universal_newlines=True, universal_newlines=True,
show_cmd=True, show_cmd=True,
logfile=self.logfile, logfile=self.logfile,