File tree Expand file tree Collapse file tree 1 file changed +14
-15
lines changed Expand file tree Collapse file tree 1 file changed +14
-15
lines changed Original file line number Diff line number Diff line change @@ -115,25 +115,24 @@ if [[ $OUT = *"\"Another Copy Of Write below binary dir\""* ]]; then
115115fi
116116
117117# Trigger some events
118- # should be able to uncomment after SSPROD-2580 is addressed
119- # FOUND=0
118+ FOUND=0
120119
121- # for i in $(seq 10); do
122- # sudo cat /etc/shadow
123- # sleep 10
120+ for i in $( seq 10) ; do
121+ sudo cat /etc/shadow
122+ sleep 10
124123
125- # EVTS=`$SCRIPTDIR/../examples/get_secure_policy_events.py $PYTHON_SDC_TEST_API_TOKEN 60`
124+ EVTS=` $SCRIPTDIR /../examples/get_secure_policy_events.py $PYTHON_SDC_TEST_API_TOKEN 60`
126125
127- # if [[ "$EVTS" != "" ]]; then
128- # FOUND=1
129- # break;
130- # fi
131- # done
126+ if [[ " $EVTS " != " " ]]; then
127+ FOUND=1
128+ break ;
129+ fi
130+ done
132131
133- # if [[ $FOUND == 0 ]]; then
134- # echo "Did not find any policy events after 10 attempts..."
135- # exit 1
136- # fi
132+ if [[ $FOUND == 0 ]]; then
133+ echo " Did not find any policy events after 10 attempts..."
134+ exit 1
135+ fi
137136
138137
139138#
You can’t perform that action at this time.
0 commit comments