diff options
author | SeongJae Park <sj@kernel.org> | 2024-04-14 09:09:19 -0700 |
---|---|---|
committer | SeongJae Park <sj@kernel.org> | 2024-04-14 09:09:19 -0700 |
commit | 56eaaff24b17af2ec9b09694117450bff8b9f703 (patch) | |
tree | 073156808fe40ffbdc9047590fff703d4748abef | |
parent | 8a50f0f82528005157f9067e02ea058408a38628 (diff) | |
download | damo-56eaaff24b17af2ec9b09694117450bff8b9f703.tar.gz |
tests/record/test: Add timeout to permission test
test_record_permission() can make the test unfinished because the
workload to record finishes too fast. Increase the time for the
workload and add timeout.
Signed-off-by: SeongJae Park <sj@kernel.org>
-rwxr-xr-x | tests/record/test.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/record/test.sh b/tests/record/test.sh index e15bb0f6..d31bd4ee 100755 --- a/tests/record/test.sh +++ b/tests/record/test.sh @@ -24,7 +24,8 @@ cleanup_files() test_record_permission() { - sudo "$damo" record "sleep 1" --output_permission 611 &> /dev/null + sudo timeout 3 "$damo" record "sleep 3" --output_permission 611 \ + &> /dev/null if [ ! "$(stat -c %a damon.data)" = "611" ] then echo "FAIL record-permission" |