a7eece8822
* While packaging in RDO, rpmlints are failing by giving non-executable script errors, we need to remove the shebang from rally/plugins/workload/siege.py as it lies with in the rally package. * unpack_plugins_samples.sh, instance_linpack.sh, instance_test.sh scripts does have executable permissions. we need to set the same for the same to avoid rpmlint errors[1.]. [1.] https://review.rdoproject.org/r/#/c/7007/5/openstack-rally.spec@105 Change-Id: Ibcab4b45a8d9dc06bf5bfbe0d8262f571da87eee
12 lines
468 B
Bash
Executable File
12 lines
468 B
Bash
Executable File
#!/bin/bash
|
|
samples_unpacked_dir=$(dirname "${BASH_SOURCE[0]}")
|
|
dirs=( $(find "$samples_unpacked_dir" -maxdepth 1 -type d -printf '%P\n') )
|
|
samples=~/.rally/plugins/samples
|
|
mkdir -p "$samples"
|
|
for dir in "${dirs[@]}"; do
|
|
cp -r $samples_unpacked_dir/$dir $samples
|
|
printf "\nTo test $dir plugin run next command:\n"
|
|
printf "rally task start --task $samples/$dir/test_$dir.yaml\n"
|
|
printf "or \nrally task start --task $samples/$dir/test_$dir.json\n"
|
|
done
|