Skip to content

Commit 45ca81f

Browse files
committed
8285915: failure_handler: gather the contents of /etc/hosts file
Reviewed-by: dfuchs, erikj
1 parent 3420a1a commit 45ca81f

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

test/failure_handler/src/share/conf/linux.properties

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ environment=\
7777
memory.vmstat.slabinfo memory.vmstat.disk \
7878
files \
7979
locks \
80-
net.sockets net.statistics net.ifconfig \
80+
net.sockets net.statistics net.ifconfig net.hostsfile \
8181
screenshot
8282
################################################################################
8383
users.current.app=id
@@ -124,6 +124,9 @@ net.statistics.args=-sv
124124
net.ifconfig.app=ifconfig
125125
net.ifconfig.args=-a
126126

127+
net.hostsfile.app=cat
128+
net.hostsfile.args=/etc/hosts
129+
127130
screenshot.app=bash
128131
screenshot.args=-c\0\
129132
echo '\

test/failure_handler/src/share/conf/mac.properties

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ environment=\
8383
process.ps process.top \
8484
memory.vmstat \
8585
files \
86-
net.netstat.av net.netstat.aL net.netstat.m net.netstat.s net.ifconfig \
86+
net.netstat.av net.netstat.aL net.netstat.m net.netstat.s net.ifconfig net.hostsfile \
8787
scutil.nwi scutil.proxy \
8888
screenshot
8989
################################################################################
@@ -125,6 +125,9 @@ net.netstat.s.args=-s
125125
net.ifconfig.app=ifconfig
126126
net.ifconfig.args=-a
127127

128+
net.hostsfile.app=cat
129+
net.hostsfile.args=/etc/hosts
130+
128131
scutil.app=scutil
129132
scutil.nwi.args=--nwi
130133
scutil.proxy.args=--proxy

test/failure_handler/src/share/conf/windows.properties

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ environment=\
7272
memory.free memory.vmstat.default memory.vmstat.statistics \
7373
memory.vmstat.slabinfo memory.vmstat.disk \
7474
files \
75-
net.sockets net.statistics net.ipconfig \
75+
net.sockets net.statistics net.ipconfig net.hostsfile \
7676
screenshot
7777
################################################################################
7878
users.current.app=id
@@ -121,6 +121,10 @@ net.statistics.args=-s -e
121121
net.ipconfig.app=ipconfig
122122
net.ipconfig.args=/all
123123

124+
net.hostsfile.app=bash
125+
net.hostsfile.args.delimiter=\0
126+
net.hostsfile.args=-c\0cat $WINDIR/System32/drivers/etc/hosts
127+
124128
screenshot.app=bash
125129
screenshot.args=-c\0\
126130
echo '\

0 commit comments

Comments
 (0)