Commit 7b59226 Copy and make executable the ptrace test case if needed as beakerlib role does not use the Makefile

1 file Authored and Committed by mgahagan 2 years ago
Copy and make executable the ptrace test case if needed as beakerlib role does not use the Makefile

    
 1 @@ -34,6 +34,11 @@
 2   TESTCASE="/tmp/ptrace-scope-test.sh"
 3   PROCFILE='/proc/sys/kernel/yama/ptrace_scope'
 4   
 5 + if [[ ! -x $TESTCASE ]] ; then
 6 +     cp ptrace-scope-test.sh $TESTCASE
 7 +     chmod a+x $TESTCASE
 8 + fi
 9 + 
10   test_root()
11   {
12       $TESTCASE