diff options
Diffstat (limited to 'controller')
-rw-r--r-- | controller/bin/dtf-run-remote.in | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/controller/bin/dtf-run-remote.in b/controller/bin/dtf-run-remote.in index f617cdb..873b68f 100644 --- a/controller/bin/dtf-run-remote.in +++ b/controller/bin/dtf-run-remote.in @@ -98,10 +98,18 @@ test -z "$opt_taskdir" \ && error "you must specify '--taskdir DIR'" \ && optparse_error=true +test ! -d "$opt_taskdir" \ + && error "\$opt_taskdir is not a directory '$opt_taskdir'" \ + && optparse_error=true + test -z "$opt_setup_playbook" \ && error "you must specify '--setup-playbook PLAYBOOK'" \ && optparse_error=true +test ! -f "$opt_setup_playbook" \ + && error "bad setup playbook '$opt_setup_playbook'" \ + && optparse_error=true + $optparse_error && exit 1 credsfile="$HOME/.dtf/private/os/$opt_openstack_instance.yml" |