Hi! > +cleanup() > +{ > + if [ -d "${root_cpuset_dir}/testdir" ]; then > + rmdir ${root_cpuset_dir}/testdir > + fi > + > + if [ "${mount_flag}" == "1" ]; then > + umount ${root_cpuset_dir} > + if [ $? -ne 0 ]; then > + tst_resm TWARN "'umount ${root_cpuset_dir}' failed" > + fi > + > + if [ -d "${root_cpuset_dir}" ]; then > + rmdir ${root_cpuset_dir} > + fi > + fi > + > + if [ -n ${cpu_exclusive_value} -a ${cpu_exclusive_value} -ne 1 ]; then > + # Need to flush, or may be output: > + # "write error: Device or resource busy" > + sync > + > + echo ${cpu_exclusive_value} > \ > + ${root_cpuset_dir}/${cpu_exclusive} > + fi
I've moved the cpu_exclusive restoration before the umount above (since we need to do the steps from setup in reverse order here) and pushed, thanks. -- Cyril Hrubis chru...@suse.cz ------------------------------------------------------------------------------ _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list