Skip to content

Commit

Permalink
Consider adding --dry-run option #29 : issues with --resolved : i…
Browse files Browse the repository at this point in the history
…mpl + fix other tests
  • Loading branch information
xonixx committed Feb 9, 2022
1 parent 5a1d782 commit 885ca40
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
3 changes: 2 additions & 1 deletion makesure.awk
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,8 @@ body,goalBody,goalBodies,resolvedGoals,exitCode, t0,t1,t2, goalTimed, list) {
printf " %s", quote2(ArgGoals[i],1)
print ":"
for (i = 0; i in resolvedGoals; i++)
print " " quote2(resolvedGoals[i])
if (!reachedGoals[goalName=resolvedGoals[i]])
print " " quote2(goalName)
} else {
for (i = 0; i in resolvedGoals; i++) {
goalName = resolvedGoals[i]
Expand Down
2 changes: 0 additions & 2 deletions tests/10_define.tush
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ $ cd "$MYDIR"; ./$MAKESURE -f tests/10_define.sh is_not_reached

$ cd "$MYDIR"; ./$MAKESURE -f tests/10_define.sh children_reached_or_not -d
| Resolved goals to reach for 'children_reached_or_not':
| must_be_reached1
| must_be_reached2
| other_goal_2
| is_not_reached
| children_reached_or_not
Expand Down
1 change: 0 additions & 1 deletion tests/11_goal_glob.tush
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ $ cd "$MYDIR"; ./$MAKESURE -f tests/11_goal_glob.sh -la
$ cd "$MYDIR"; ./$MAKESURE -f tests/11_goal_glob.sh -d '11_goal_glob*.txt'
| Resolved goals to reach for '11_goal_glob*.txt':
| 11_goal_glob_1.txt
| 11_goal_glob_2.txt
| 11_goal_glob_3.txt
| 11_goal_glob_10.txt
| '11_goal_glob*.txt'
Expand Down
2 changes: 0 additions & 2 deletions tests/6_reached_if.tush
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@ $ cd "$MYDIR"; ./$MAKESURE -f tests/6_reached_if.sh

$ cd "$MYDIR"; ./$MAKESURE -f tests/6_reached_if.sh -d
| Resolved goals to reach for 'default':
| bbb
| aaa
| default

$ cd "$MYDIR"; ./$MAKESURE -f tests/6_reached_if.sh --resolved bbb
| Resolved goals to reach for 'bbb':
| bbb

0 comments on commit 885ca40

Please sign in to comment.