Skip to contentSkip to conversation

tools/mvtest: call out to the correct group sort program

PATCH New Darrick J. Wong 1 participant 1 message Jan 20, 2016

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 tools/mvtest: call out to the correct group sort program

mvtest should call the actual name of the sort-group program. Fix a cut-paste error in finding the destination group file.

---
 tools/mvtest |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tools/mvtest +2 -2
index af601d6..20bc23e 100755
@@ -33,7 +33,7 @@ sgroup="$(basename "$(dirname "tests/${src}")")"
 dgroup="$(basename "$(dirname "tests/${dest}")")"
 
 sgroupfile="tests/${sgroup}/group"
-dgroupfile="tests/${sgroup}/group"
+dgroupfile="tests/${dgroup}/group"
 
 git mv "tests/${src}" "tests/${dest}"
 git mv "tests/${src}.out" "tests/${dest}.out"
@@ -47,7 +47,7 @@ newgrpline="$(echo "${grpline}" | sed -e "s/^${sid} /${did} /g")"
 sed -e "/^${sid}.*$/d" -i "${sgroupfile}"
 cp "${dgroupfile}" "${dgroupfile}.new"
 append "${dgroupfile}.new" "${newgrpline}"
-"${dir}/sort-group.py" "${dgroupfile}.new"
+"${dir}/sort-group" "${dgroupfile}.new"
 mv "${dgroupfile}.new" "${dgroupfile}"
 
 echo "Moved \"${src}\" to \"${dest}\"."