test_hostid.rs lacks test cases with frozen ip addr e.g. unshare -ru sh -c "hostname 127.0.0.1 && hostid"
维护者通常 1 天内回复
评估
调研方向
现有检查位于 test_hostid.rs 中,它只是对输出进行正则匹配。请先阅读它,看看其他测试用例是如何运行 hostid 二进制文件的。添加一个用例,将运行过程包裹在 unshare -ru sh -c "hostname 127.0.0.1 && ..." 中,并期望输出 007f0100。当在启用了用户命名空间的 Linux 上 cargo test hostid 通过时即完成。
由索引模型根据 Issue 内容生成。
描述
test_hostid lacks test cases with frozen ip addr. It just checks regex.
We should have 1 example at least for.
$ unshare -ru sh -c "hostname 127.0.0.1 && /home/a/bin/gnu9.12/hostid"
007f0100
$ unshare -ru sh -c "hostname 127.0.0.1 && target/debug/hostid"
007f0100
- 主要语言
- Rust
- 星标
- 24.4k
- 派生
- 2.2k
- 平均合并
- 3 天 6 小时
- 30 天内合并 PR
- 434
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
uutils/coreutils 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 83/100
维护者通常 1 天内回复
-
U - shred
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
chown -v: `+ID` spec echoed verbatim on a broken symlink可能已有人在做 @sunsss123soldier 于 2 天前认领。 未关闭good first issue oss-scanner U - chown
难度 2/5 1-3 小时 新手友好度 80/100
维护者通常 1 天内回复
-
dircolors: --csh doesn't escape `!`可能已有人在做 @majidninja 于 2 天前认领。 未关闭good first issue oss-scanner U - dircolors
难度 2/5 1-3 小时 新手友好度 72/100
uutils/coreutils#16496 · 1 条评论 ·
维护者通常 1 天内回复
-
dircolors: directory operand exits 2 with a custom message, GNU prints 'read error: Is a directory' and exits 1可能已有人在做 @emirmrkaljevic 于 3 天前认领。 未关闭U - dircolors
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
相似的 Issue
-
ai_p2
难度 2/5 1-3 小时 新手友好度 80/100
ClickHouse/ClickHouse#132519 ·
维护者通常 1 天内回复
-
Pattern-clip compiler tests miss the clip cap, sort order, muted output and count/emit agreement未关闭area: engine type: test
难度 2/5 1-3 小时 新手友好度 76/100
YuriiMurha/grooviq#224 ·
维护者通常 1 天内回复
-
state:needs triage
难度 2/5 1-3 小时 新手友好度 83/100
zed-industries/zed#67109 · 1 条评论 ·
维护者通常 1 天内回复
-
bug priority: medium
难度 2/5 1-3 小时 新手友好度 78/100
storytold/photocraft#15500 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 83/100
维护者通常 1 天内回复