File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ cleanup() {
1515 rm -rf " ${DIR_PATH} " || true
1616 rm -rf " ${SCRIPT_PATH} /01.actual" || true
1717 rm -rf " ${SCRIPT_PATH} /01.expected" || true
18+ rm -rf " ${SCRIPT_PATH} /01.tmp" || true
1819}
1920
2021
@@ -35,24 +36,24 @@ touch "${DIR_PATH}/file 2"
3536# ## 02. Setup expected
3637# ##
3738{
38- echo " add: ./dir 1" ;
39- echo " add: ./dir 2" ;
40- echo " add: ./dir 3" ;
41- echo " add: ./dir 4" ;
39+ echo " [OK] ADD: succeeded: ./dir 1"
40+ echo " [OK] ADD: succeeded: ./dir 2"
41+ echo " [OK] ADD: succeeded: ./dir 3"
42+ echo " [OK] ADD: succeeded: ./dir 4"
4243} > " ${SCRIPT_PATH} /01.expected"
4344
4445
4546# ##
4647# ## 03. Run watcherd
4748# ##
4849cd " ${DIR_PATH} "
49- " ${BIN_PATH} /watcherd" -p " ." -a " echo 'add: %p'" -d " echo 'del: %p'" > " ${SCRIPT_PATH} /01.actual " &
50+ " ${BIN_PATH} /watcherd" -v - p " ." -a " echo 'add: %p'" -d " echo 'del: %p'" > " ${SCRIPT_PATH} /01.tmp " &
5051watch_pid=" ${! } "
5152echo " Started watcherd with pid: ${watch_pid} "
5253echo " Waiting 5 sec."
5354sleep 5
5455
55-
56+ cat " ${SCRIPT_PATH} /01.tmp " | grep -Eo ' \[OK.* ' > " ${SCRIPT_PATH} /01.actual "
5657
5758# ##
5859# ## 04 .Compare results and shutdown
You can’t perform that action at this time.
0 commit comments