Trying another approach to copy logs to /test_output without sudo.

This commit is contained in:
Vitaliy Zakaznikov 2021-05-25 21:34:46 -04:00
parent 9dd9f221c1
commit e8d74250bf

View File

@ -73,4 +73,4 @@ RUN set -x \
VOLUME /var/lib/docker
EXPOSE 2375
ENTRYPOINT ["dockerd-entrypoint.sh"]
CMD ["sh", "-c", "python3 regression.py --no-color -o classic --local --clickhouse-binary-path ${CLICKHOUSE_TESTS_SERVER_BIN_PATH} --only /clickhouse/:/foo --log test.log ${TESTFLOWS_OPTS}; cat test.log | tfs report results --format json > results.json; /usr/local/bin/process_testflows_result.py || echo -e 'failure\tCannot parse results' > check_status.tsv; sudo find . -type f | grep _instances | grep clickhouse-server | sudo xargs -n1 tar -rvf /test_output/clickhouse_logs.tar; sudo tar -xf /test_output/clickhouse_logs.tar --directory /test_output; sudo rm -rf /test_output/clickhouse_logs.tar"]
CMD ["sh", "-c", "python3 regression.py --no-color -o classic --local --clickhouse-binary-path ${CLICKHOUSE_TESTS_SERVER_BIN_PATH} --only /clickhouse/:/foo --log test.log ${TESTFLOWS_OPTS}; cat test.log | tfs report results --format json > results.json; /usr/local/bin/process_testflows_result.py || echo -e 'failure\tCannot parse results' > check_status.tsv; find . -type f | grep _instances | grep clickhouse-server | xargs -n1 tar -rvf clickhouse_logs.tar; tar -xf clickhouse_logs.tar --directory /test_output; rm -rf clickhouse_logs.tar"]