We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b1498b commit 961b74bCopy full SHA for 961b74b
tests/templates.py
@@ -63,9 +63,16 @@
63
rm -rf "$ARTIFACT_DIR"
64
mkdir -p "$ARTIFACT_DIR"
65
66
+diff_idx=0
67
while IFS= read -r transform; do
68
[[ -z "$transform" ]] && continue
- DIFF_FILE="$ARTIFACT_DIR/${transform}.diff"
69
+
70
+ # Print the index in 4 digit format with leading zeroes,
71
+ # so the indices align just like in git outputs
72
+ diff_idx4=`printf "%04d" "${diff_idx}"`
73
+ : $((diff_idx++))
74
75
+ DIFF_FILE="$ARTIFACT_DIR/${diff_idx4}_${transform}.diff"
76
77
c2rust-refactor \
78
${transform} \
0 commit comments