Commit Graph

4 Commits

Author SHA1 Message Date
Pierre-Louis Bonicoli 0eb09e7b4f
explicit error when test_command is undef
Don't use a shell builtin: shell builtins aren't available since
'command' ansible module is used. Instead, fail with an explicit
error when the required test_command variable is not set.

Fix this error:

    Ansible output: b'failed: [host] (item=exit 1) => {
        "ansible_loop_var": "item",
        "changed": false,
        "cmd": "exit 1",
        "item": "exit 1",
        "msg": "[Errno 2] No such file or directory: 'exit': 'exit'",
        "rc": 2
    }

Change-Id: I88303f7302d7354ffc8b18e607b28349a9860a57
2020-09-22 13:39:22 +02:00
James E. Blair a3ba8e309a Add zuul_work_dir to run-test-command
To make it so that a repo can host a simple command which is an
integration test of multiple projects, add the semi-standard
zuul_work_dir variable to the job.

Change-Id: I265469ac9c12c3a38a11b243f3ff747d27141f21
2020-05-13 11:31:01 -07:00
Tristan Cacqueray 1475af7158 run-test-command: support list in test_command variable
This change enable run-test-command to use a list of commands.

Change-Id: I7727c8330593a548a1bc66765bc632abfb9df1c8
2018-11-22 01:23:40 +00:00
Andreas Jaeger 4342f983d1 Add simple run-test-command job
Add a simple run-test-command that can be used to run a simple
command or shell-script.

Change-Id: I00bade475b5b224768acde3ef232ca0704d3600e
Needed-By: https://review.openstack.org/548080
Needed-By: https://review.openstack.org/545712
2018-02-26 20:37:53 +01:00