artiq_pcap: still grab the file if the command fails.

This commit is contained in:
whitequark 2017-12-08 07:36:28 +00:00 committed by Sebastien Bourdeauducq
parent 3f0277197f
commit 16d49f38c1
1 changed files with 1 additions and 2 deletions

View File

@ -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),