TYPO3 Flow Base DistributionPackagesApplications

Feature #58213

add test for commandline tool expect

Added by Kay Strobach over 1 year ago. Updated about 1 year ago.

Status:New Start date:2014-04-26
Priority:Must have Due date:
Assigned To:- % Done:

0%

Category:-
Target version:-

Description

it would be nice, if there would be a warning, if expect is missing.
Currently you get a simple:

Got exception "Deployment directory "/export/home/project/builds/testing" does not exist on node Staging" but rollback disabled. Stopping.

History

#1 Updated by Kay Strobach about 1 year ago

Bash

    if hash expect 2>/dev/null; then
        exit 0
    else
        exit 1
    fi

should do it easily refering to https://stackoverflow.com/questions/592620/how-to-check-if-a-program-exists-from-a-bash-script

perhaps this should be made to a task, having a parameter which defines, for which binary tests should be executed ...

Also available in: Atom PDF