Re: [PATCH 3/3] selftests: ignore output files and clean them in Makefile

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/14/24 19:08, Li Zhijian wrote:
After `make run_tests`, the git status complains:
Untracked files:
     (use "git add <file>..." to include in what will be committed)
         cpufreq/cpufreq_selftest.dmesg_cpufreq.txt
         cpufreq/cpufreq_selftest.dmesg_full.txt
         cpufreq/cpufreq_selftest.txt
         zram/err.log

Signed-off-by: Li Zhijian <lizhijian@xxxxxxxxxxx>
---
  tools/testing/selftests/cpufreq/.gitignore | 1 +
  tools/testing/selftests/cpufreq/Makefile   | 1 +
  tools/testing/selftests/zram/.gitignore    | 1 +

Same comment here - two separate patches and include
key people to the email recipients.

  3 files changed, 3 insertions(+)
  create mode 100644 tools/testing/selftests/cpufreq/.gitignore
  create mode 100644 tools/testing/selftests/zram/.gitignore

diff --git a/tools/testing/selftests/cpufreq/.gitignore b/tools/testing/selftests/cpufreq/.gitignore
new file mode 100644
index 000000000000..f684d27f5d91
--- /dev/null
+++ b/tools/testing/selftests/cpufreq/.gitignore
@@ -0,0 +1 @@
+cpufreq_selftest.*
diff --git a/tools/testing/selftests/cpufreq/Makefile b/tools/testing/selftests/cpufreq/Makefile
index c86ca8342222..9b2ccb10b0cf 100644
--- a/tools/testing/selftests/cpufreq/Makefile
+++ b/tools/testing/selftests/cpufreq/Makefile
@@ -3,6 +3,7 @@ all:
TEST_PROGS := main.sh
  TEST_FILES := cpu.sh cpufreq.sh governor.sh module.sh special-tests.sh
+EXTRA_CLEAN := cpufreq_selftest.dmesg_cpufreq.txt cpufreq_selftest.dmesg_full.txt cpufreq_selftest.txt
include ../lib.mk diff --git a/tools/testing/selftests/zram/.gitignore b/tools/testing/selftests/zram/.gitignore
new file mode 100644
index 000000000000..b4a2cb6fafa6
--- /dev/null
+++ b/tools/testing/selftests/zram/.gitignore
@@ -0,0 +1 @@
+err.log

thanks,
-- Shuah




[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux