artefactual / automation-tools

Tools to aid automation of Archivematica and AtoM.
GNU Affero General Public License v3.0
46 stars 33 forks source link

Correct the behavior of the transfer path #91

Closed ross-spencer closed 5 years ago

ross-spencer commented 5 years ago

The previous commit broke how the transfer path was utilised by the script, namely, a non-absolute path was sent to the pre-transfers scripts which saw them manipulate the automation tools folder instead of the transfer folder. The previous functionality has been re-implemented and tests created to demonstrate the return of a tuple containing the transfer name and the transfer path. Additionally, the automation-tools will verify that the transfer_path can be discovered, because if it doesn't exist for any reasson, e.g. the scripts are being run remotely, or have been configured incorrectly, then we do not want to run the scripts at all.

Connected to archivematica/Issues#433