diff options
author | Piyush Thange <pthange19@gmail.com> | 2024-03-06 17:57:37 +0530 |
---|---|---|
committer | SeongJae Park <71698583+sj-aws@users.noreply.github.com> | 2024-03-06 08:43:37 -0800 |
commit | 345cf9583b97bbc0193d1c86482bce335793ea36 (patch) | |
tree | fa55093f25865a515b80a4139cdceb582f22d7cc | |
parent | e090c478140941e125c716b5c8c43f8e9fcb4f3d (diff) | |
download | damo-345cf9583b97bbc0193d1c86482bce335793ea36.tar.gz |
tests: schemes: test.sh: Python version included
While running `sudo ./test/run.sh` encountered the error due to python version.
Following was the error.
```
./schemes/test.sh: line 27: python: command not found
could not turn on damon (writing on to /sys/kernel/mm/damon/admin/kdamonds/0/state
failed ([Errno 22] Invalid argument))
./schemes/test.sh: line 45: test_stat_applied / (SECONDS - start_time): division
by 0 (error token is "(SECONDS - start_time)")
```
Signed-off-by: Piyush Thange <pthange19@gmail.com>
-rwxr-xr-x | tests/schemes/test.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/schemes/test.sh b/tests/schemes/test.sh index 2fbed23b..e4ddf0b1 100755 --- a/tests/schemes/test.sh +++ b/tests/schemes/test.sh @@ -24,7 +24,7 @@ __test_stat() { local quota_reset_interval="max" fi - python ./stairs.py & + python3 ./stairs.py & local stairs_pid=$! sudo "$damo" start "$stairs_pid" --damos_action stat \ --damos_sz_region 4K max --damos_access_rate 0% 0% \ |