Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F160005348
D26417.id76956.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D26417.id76956.diff
View Options
Index: sbin/pfctl/tests/pfctl_test.sh
===================================================================
--- sbin/pfctl/tests/pfctl_test.sh
+++ sbin/pfctl/tests/pfctl_test.sh
@@ -24,21 +24,22 @@
0079 0081 0082 0084 0085 0087 0088 0089 0090 0091 0092 0094 0095 0096
0097 0098 0100 0101 0102 0104 1001 1002 1003 1004 1005"
-. $(atf_get_srcdir)/files/pfctl_test_descr.sh
+atf_srcdir=$(atf_get_srcdir)
+. "${atf_srcdir}/files/pfctl_test_descr.sh"
for i in ${pftests} ; do
atf_test_case "pf${i}"
eval "pf${i}_head () { atf_set descr \"$(pf${i}_descr)\" ; }"
eval "pf${i}_body () { \
kldstat -m pf || atf_skip \"pf(4) is not loaded\" && \
- cd $(atf_get_srcdir)/files && \
+ cd ${atf_srcdir}/files && \
atf_check -o file:pf${i}.ok \
pfctl -o none -nvf - < pf${i}.in ; }"
atf_test_case "selfpf${i}"
eval "selfpf${i}_head () { atf_set descr \"self$(pf${i}_descr)\" ; }"
eval "selfpf${i}_body () { \
- cd $(atf_get_srcdir)/files && \
+ cd ${atf_srcdir}/files && \
atf_check -o file:pf${i}.ok \
pfctl -o none -nvf - < pf${i}.ok ; }"
done
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jun 21, 11:32 AM (11 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34148297
Default Alt Text
D26417.id76956.diff (1 KB)
Attached To
Mode
D26417: pfctl_test: avoid 200 calls to atf_get_srcdir
Attached
Detach File
Event Timeline
Log In to Comment