Skip to content

Commit

Permalink
Bug fix for iotcheck.sh: need to check the option -dpor for two diffe…
Browse files Browse the repository at this point in the history
…rent scenarios.
  • Loading branch information
rtrimana authored Aug 21, 2021
1 parent 000dbcf commit 06acd3f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions dpor_implementation/smartthings-infrastructure/iotcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,12 @@ execute_iotcheck_device()
if [[ $2 == '-dpor' ]]
then
python3 ModelCheck_DPOR.py ../jpf-core/ ../logs/$1/ ../smartapps/ true true appLists/device-interaction/$1AppList appLists/device-interaction/$1AppList2
else
elif [[ $2 == '' ]]
then
python3 ModelCheck.py ../jpf-core/ ../logs/$1/ ../smartapps/ appLists/device-interaction/$1AppList appLists/device-interaction/$1AppList2
else
# Print usage info if there is any mistake
print_usage
fi
else
print_usage
Expand All @@ -93,8 +97,12 @@ execute_iotcheck_global()
if [[ $2 == '-dpor' ]]
then
python3 ModelCheck_DPOR.py ../jpf-core/ ../logs/$1/ ../smartapps/ true true appLists/global-state-variable-interaction/$1AppList appLists/global-state-variable-interaction/$1AppList2
else
elif [[ $2 == '' ]]
then
python3 ModelCheck.py ../jpf-core/ ../logs/$1/ ../smartapps/ appLists/global-state-variable-interaction/$1AppList appLists/global-state-variable-interaction/$1AppList2
else
# Print usage info if there is any mistake
print_usage
fi
else
print_usage
Expand Down

0 comments on commit 06acd3f

Please sign in to comment.