How to kick off a background process?


We have a mock server program which we are trying to run in the background and proceed to the next step, but seems bitrise hangs on that script step expecting the server runner command to exit, which we don’t want. We’d like the server to run locally so it can serve our UI Test code.

Is this currently possible, or do we need to group our mock server runner script with the test runner step, and ensure we properly terminate the server at the end of the step?

For reference, this is what I’ve tried:

# run pylot
python3 "" \
    --master-repo "./customer-api" \
    --test-results-destination "./artifacts/test-results" &

I got it to work:

screen -dm the_command
do more stuff...
1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.