1 Star 0 Fork 21

haochen/chrony

forked from src-openEuler/chrony 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
chrony-packettest.patch 886 Bytes
一键复制 编辑 原始数据 按行查看 历史
hanzj0122_admin 提交于 2020-06-28 14:58 . update to 3.5-1
commit 62d6aed6a64b887c9e3b7f03d9e0db1deaa2696a
Author: Miroslav Lichvar <mlichvar@redhat.com>
Date: Tue Jun 18 15:41:50 2019 +0200
test: update processing of packet log
Two new fields have been added to the packet log, which broke some
of the simulation tests.
diff --git a/test/simulation/test.common b/test/simulation/test.common
index 951a794b..8ed6ad9e 100644
--- a/test/simulation/test.common
+++ b/test/simulation/test.common
@@ -391,9 +391,9 @@ check_packet_port() {
for i in $(seq 1 $(get_chronyd_nodes)); do
test_message 3 0 "node $i:"
- grep -E -q " $port [0-9]+\$" tmp/log.packets && \
+ grep -E -q "^([0-9e.+-]+ ){5}$port " tmp/log.packets && \
! grep -E "^[0-9e.+-]+ $i " tmp/log.packets | \
- grep -E -q -v " $port [0-9]+\$" && \
+ grep -E -q -v "^([0-9e.+-]+ ){5}$port " && \
test_ok || test_bad
[ $? -eq 0 ] || ret=1
done
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/haochenstar/chrony.git
git@gitee.com:haochenstar/chrony.git
haochenstar
chrony
chrony
master

搜索帮助