[ 
https://issues.apache.org/jira/browse/FLINK-25041?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17485294#comment-17485294
 ] 

Fabian Paul commented on FLINK-25041:
-------------------------------------

Merged in master: 8a9a08bf408aae8a33438a38614199efeb8f1c63

> E2E tar ball cache fails without error message if target directory not 
> specified
> --------------------------------------------------------------------------------
>
>                 Key: FLINK-25041
>                 URL: https://issues.apache.org/jira/browse/FLINK-25041
>             Project: Flink
>          Issue Type: Technical Debt
>          Components: Test Infrastructure
>    Affects Versions: 1.14.0, 1.13.3, 1.15.0
>            Reporter: Fabian Paul
>            Assignee: Mika Naylor
>            Priority: Minor
>              Labels: pull-request-available, stale-assigned
>
> We want to verify if the variable has been set.
> {code:java}
> if [ -z "$E2E_TARBALL_CACHE" ] ; then
>     echo "You have to export the E2E Tarball Cache as E2E_TARBALL_CACHE"
>     exit 1
> fi {code}
> but the shown code immediately fails with an `unbound variable` error if the 
> variable is not set and it does not evaluate the branch.
>  
> We should change it to something like this
> {code:java}
> if [ "${E2E_TARBALL_CACHE+x}" == x ] ; then
>     echo "You have to export the E2E Tarball Cache as E2E_TARBALL_CACHE" 
>     exit 1
> fi  {code}
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to