Change test to be consistent with the main implementation

Signed-off-by: Yoshi Yamaguchi <yoshifumi@google.com>
This commit is contained in:
Yoshi Yamaguchi 2021-03-19 17:23:53 +09:00
parent 4981ca0a97
commit 68aa7ca14b

View file

@ -344,7 +344,7 @@ class MockLoader
"host -t AAAA example.com" => cmd.call("host-AAAA-example.com"),
"ping -W 1 -c 1 example.com" => cmd.call("ping-example.com"),
# apt
"find /etc/apt/ -name *.list -exec sh -c 'cat {} || echo -n' \\;" => cmd.call("etc-apt"),
"find /etc/apt/ -name \"*.list\" -exec sh -c 'cat {} || echo -n' \\;" => cmd.call("etc-apt"),
# iptables
"/usr/sbin/iptables -S" => cmd.call("iptables-s"),
%{sh -c 'type "/usr/sbin/iptables"'} => empty.call,