Skip to content

Commit 9f3c646

Browse files
committed
8285915: failure_handler: gather the contents of /etc/hosts file
Backport-of: 45ca81ff5f25ce7927c5debc2f89b41246b91b92
1 parent 58ac267 commit 9f3c646

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
@@ -80,7 +80,7 @@ environment=\
8080
memory.vmstat.slabinfo memory.vmstat.disk \
8181
files \
8282
locks \
83-
net.sockets net.statistics net.ifconfig \
83+
net.sockets net.statistics net.ifconfig net.hostsfile \
8484
screenshot
8585
################################################################################
8686
users.current.app=id
@@ -127,6 +127,9 @@ net.statistics.args=-sv
127127
net.ifconfig.app=ifconfig
128128
net.ifconfig.args=-a
129129

130+
net.hostsfile.app=cat
131+
net.hostsfile.args=/etc/hosts
132+
130133
screenshot.app=bash
131134
screenshot.args=-c\0\
132135
echo '\

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ environment=\
8989
process.ps process.top \
9090
memory.vmstat \
9191
files \
92-
net.netstat.av net.netstat.aL net.netstat.m net.netstat.s net.ifconfig \
92+
net.netstat.av net.netstat.aL net.netstat.m net.netstat.s net.ifconfig net.hostsfile \
9393
scutil.nwi scutil.proxy \
9494
screenshot
9595
################################################################################
@@ -131,6 +131,9 @@ net.netstat.s.args=-s
131131
net.ifconfig.app=ifconfig
132132
net.ifconfig.args=-a
133133

134+
net.hostsfile.app=cat
135+
net.hostsfile.args=/etc/hosts
136+
134137
scutil.app=scutil
135138
scutil.nwi.args=--nwi
136139
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
@@ -75,7 +75,7 @@ environment=\
7575
memory.free memory.vmstat.default memory.vmstat.statistics \
7676
memory.vmstat.slabinfo memory.vmstat.disk \
7777
files \
78-
net.sockets net.statistics net.ipconfig \
78+
net.sockets net.statistics net.ipconfig net.hostsfile \
7979
screenshot
8080
################################################################################
8181
users.current.app=id
@@ -125,6 +125,10 @@ net.statistics.args=-s -e
125125
net.ipconfig.app=ipconfig
126126
net.ipconfig.args=/all
127127

128+
net.hostsfile.app=bash
129+
net.hostsfile.args.delimiter=\0
130+
net.hostsfile.args=-c\0cat $WINDIR/System32/drivers/etc/hosts
131+
128132
screenshot.app=bash
129133
screenshot.args=-c\0\
130134
echo '\

0 commit comments

Comments
 (0)