From 3cf5cef16866e886b3ce7589fcbc2f31e95ddc33 Mon Sep 17 00:00:00 2001 From: whitequark Date: Fri, 8 Dec 2017 07:36:28 +0000 Subject: [PATCH] artiq_pcap: still grab the file if the command fails. --- artiq/frontend/artiq_pcap.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/artiq/frontend/artiq_pcap.py b/artiq/frontend/artiq_pcap.py index 66b39683b..59f124734 100644 --- a/artiq/frontend/artiq_pcap.py +++ b/artiq/frontend/artiq_pcap.py @@ -4,8 +4,8 @@ # * tcpdump has CAP_NET_RAW capabilities set # use # setcap cap_net_raw+eip /usr/sbin/tcpdump -import argparse import os +import argparse import subprocess from artiq.tools import verbosity_args, init_logger, logger, SSHClient @@ -49,7 +49,6 @@ def main(): subprocess.check_call(args.command) except subprocess.CalledProcessError: logger.error("Command failed") - sys.exit(1) tcpdump.close() sftp.get("{tmp}/trace.pcap".format(tmp=client.tmp),