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
115
115
fi
116
116
117
117
# Trigger some events
118
- # should be able to uncomment after SSPROD-2580 is addressed
119
- # FOUND=0
118
+ FOUND=0
120
119
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
124
123
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`
126
125
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
132
131
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
137
136
138
137
139
138
#
You can’t perform that action at this time.
0 commit comments