提交 17150fef 编写于 作者: S Steven Rostedt (Red Hat) 提交者: Steven Rostedt

ktest: Add back "tail -1" to kernelrelease make

Commit 52d21580 "ktest: Use make -s kernelrelease" fixed commit
7ff52571 "kbuild: fake the "Entering directory ..." message more simply"
as that commit added output after the make kernelrelease. But there's still
some build scripts that are used by ktest that has output before the make
is executed, and requires that only the last line is printed.

Cc: Michal Marek <mmarek@suse.cz>
Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
上级 18656c70
...@@ -2002,7 +2002,7 @@ sub get_version { ...@@ -2002,7 +2002,7 @@ sub get_version {
# get the release name # get the release name
return if ($have_version); return if ($have_version);
doprint "$make kernelrelease ... "; doprint "$make kernelrelease ... ";
$version = `$make -s kernelrelease`; $version = `$make -s kernelrelease | tail -1`;
chomp($version); chomp($version);
doprint "$version\n"; doprint "$version\n";
$have_version = 1; $have_version = 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册