[vs][asan] add /var/log/asan to ASAN-enabled docker-sonic-vs image (#11059)
To ensure that ASAN logs are always generated. Currently, the way to get the logs is to map the "/var/log/asan" outside of a container, which doesn't work for DVS test run with "--imgname" option. Signed-off-by: Yakiv Huryk <yhuryk@nvidia.com>
This commit is contained in:
parent
d30d84b4c6
commit
505d505d59
@ -186,6 +186,10 @@ RUN mkdir -p /etc/supervisor/conf.d/
|
||||
RUN sonic-cfggen -a "{\"ENABLE_ASAN\":\"{{ENABLE_ASAN}}\"}" -t /usr/share/sonic/templates/supervisord.conf.j2 > /etc/supervisor/conf.d/supervisord.conf
|
||||
RUN rm -f /usr/share/sonic/templates/supervisord.conf.j2
|
||||
|
||||
{%- if ENABLE_ASAN == "y" %}
|
||||
RUN mkdir -p /var/log/asan
|
||||
{%- endif %}
|
||||
|
||||
# Workaround the tcpdump issue
|
||||
RUN mv /usr/sbin/tcpdump /usr/bin/tcpdump
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user