Skip to content

Commit e5185ca

Browse files
committed
Corrected camel case handling, removed mutant option not supported in the version used.
1 parent cb8356e commit e5185ca

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

ecommerce/pricing/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ ifeq ($(origin MUTANT_NODE_INDEX), environment)
2929
head -n 5 .node_files.tmp || echo "File .node_files.tmp is empty."; \
3030
echo "--- END DEBUG (awk) ---"; \
3131
echo "--- DEBUG: Attempting to derive subject names for this node... ---"; \
32-
DERIVED_NAMES=$$(cat .node_files.tmp | perl -pe 's#^lib/##; s#\.rb$$##; s#/(.)#"::" . ucfirst($$1)#eg; s#_([a-z])#uc($$1)#eg; s/(?:^|::)(.)/\u$$1/g'); \
32+
DERIVED_NAMES=$$(cat .node_files.tmp | perl -ne 'chomp; s#^lib/##; s#\.rb$$##; my @parts = split /\//; my $result = ""; foreach my $$part (@parts) { $$part =~ s#_([a-z])#uc($$1)#eg; $result .= "::" . ucfirst($$part); } $result =~ s/^:://; print "$$result\n"'); \
3333
PERL_EXIT_CODE=$$?; \
3434
if [ $$PERL_EXIT_CODE -ne 0 ]; then \
3535
echo "ERROR: Perl command failed with exit code $$PERL_EXIT_CODE"; \
@@ -45,8 +45,8 @@ ifeq ($(origin MUTANT_NODE_INDEX), environment)
4545
if [ -z "$$SUBJECT_ARGS" ]; then \
4646
echo "No subjects derived for this node. Skipping."; \
4747
else \
48-
echo "Attempting to run mutant --fail-fast for derived subjects: $$SUBJECT_ARGS"; \
49-
RAILS_ENV=test bundle exec mutant --fail-fast run $$SUBJECT_ARGS; \
48+
echo "Attempting to run mutant for derived subjects: $$SUBJECT_ARGS"; \
49+
RAILS_ENV=test bundle exec mutant run $$SUBJECT_ARGS; \
5050
fi; \
5151
rm -f .all_files.tmp .node_files.tmp
5252
else

rails_application/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ ifeq ($(origin MUTANT_NODE_INDEX), environment)
4545
head -n 5 .node_files.tmp || echo "File .node_files.tmp is empty."; \
4646
echo "--- END DEBUG (awk) ---"; \
4747
echo "--- DEBUG: Attempting to derive subject names for this node... ---"; \
48-
DERIVED_NAMES=$$(cat .node_files.tmp | perl -pe 's#^(app/(controllers|models|helpers|jobs|mailers|channels|client_panel)|lib)/##; s#\.rb$$##; s#/(.)#"::" . ucfirst($$1)#eg; s#_([a-z])#uc($$1)#eg; s/(?:^|::)(.)/\u$$1/g'); \
48+
DERIVED_NAMES=$$(cat .node_files.tmp | perl -ne 'chomp; s#^(app/(controllers|models|helpers|jobs|mailers|channels|client_panel)|lib)/##; s#\.rb$$##; my @parts = split /\//; my $result = ""; foreach my $$part (@parts) { $$part =~ s#_([a-z])#uc($$1)#eg; $result .= "::" . ucfirst($$part); } $result =~ s/^:://; print "$$result\n"'); \
4949
PERL_EXIT_CODE=$$?; \
5050
if [ $$PERL_EXIT_CODE -ne 0 ]; then \
5151
echo "ERROR: Perl command failed with exit code $$PERL_EXIT_CODE"; \
@@ -61,8 +61,8 @@ ifeq ($(origin MUTANT_NODE_INDEX), environment)
6161
if [ -z "$$SUBJECT_ARGS" ]; then \
6262
echo "No subjects derived for this node. Skipping."; \
6363
else \
64-
echo "Attempting to run mutant --fail-fast for derived subjects: $$SUBJECT_ARGS"; \
65-
RAILS_ENV=test bundle exec mutant --fail-fast run $$SUBJECT_ARGS; \
64+
echo "Attempting to run mutant for derived subjects: $$SUBJECT_ARGS"; \
65+
RAILS_ENV=test bundle exec mutant run $$SUBJECT_ARGS; \
6666
fi; \
6767
rm -f .all_files.tmp .node_files.tmp
6868
else

0 commit comments

Comments
 (0)