Commit af24a874 authored by Michal Berger's avatar Michal Berger Committed by Tomasz Zawadzki
Browse files

test/scheduler: Don't declare $plugin as ro



Bash does not differentiate read only variables in global scope
from the local instances. Currently conflict exists with the
fio_plugin() which does not allow scheduler/common.sh to be
source'ed into env where this function is meant to be used.

To mitigate, just not declare scheduler/common.sh's $plugin
as read-only.

Change-Id: Ia1a569fc41bd90df580cd7267bd1f29480286278
Signed-off-by: default avatarMichal Berger <michal.berger@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/19757


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarJim Harris <jim.harris@gmail.com>
Reviewed-by: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
parent eedb793c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@ declare -r sysfs_cpu=$sysfs_system/cpu
declare -r sysfs_node=$sysfs_system/node

declare -r scheduler=$rootdir/test/event/scheduler/scheduler
declare -r plugin=scheduler_plugin
declare plugin=scheduler_plugin

source "$rootdir/test/scheduler/cgroups.sh"