mirror of
https://github.com/torvalds/linux.git
synced 2024-12-06 11:01:43 +00:00
18378b0e49
When running the test for the damon subsystem, there are a lot of warnings because test scripts do not have executable permission, for example: Warning: file debugfs_attrs.sh is not executable Warning: file debugfs_schemes.sh is not executable Warning: file debugfs_target_ids.sh is not executable ... This patch adds executable permission to test scripts to eliminate these warnings. Signed-off-by: Juntong Deng <juntong.deng@outlook.com> Reviewed-by: SeongJae Park <sj@kernel.org> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
20 lines
339 B
Bash
Executable File
20 lines
339 B
Bash
Executable File
#!/bin/bash
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
source _debugfs_common.sh
|
|
|
|
# Test putting non-ctx files/dirs to rm_contexts file
|
|
# ===================================================
|
|
|
|
dmesg -C
|
|
|
|
for file in "$DBGFS/"*
|
|
do
|
|
(echo "$(basename "$f")" > "$DBGFS/rm_contexts") &> /dev/null
|
|
if dmesg | grep -q BUG
|
|
then
|
|
dmesg
|
|
exit 1
|
|
fi
|
|
done
|