mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-01-22 05:14:03 -05:00
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>
14 lines
368 B
Bash
Executable File
14 lines
368 B
Bash
Executable File
#!/bin/bash
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
source _debugfs_common.sh
|
|
|
|
# Test empty targets case
|
|
# =======================
|
|
|
|
orig_target_ids=$(cat "$DBGFS/target_ids")
|
|
echo "" > "$DBGFS/target_ids"
|
|
orig_monitor_on=$(cat "$DBGFS/monitor_on")
|
|
test_write_fail "$DBGFS/monitor_on" "on" "orig_monitor_on" "empty target ids"
|
|
echo "$orig_target_ids" > "$DBGFS/target_ids"
|