Skip to content

Commit 47e2a6f

Browse files
committed
fix(test): fix regression-testing scripts.
1 parent 43c45b6 commit 47e2a6f

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

Diff for: scripts/regression-testing.zsh

+10-6
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ if [[ $VERSION != $CUR_VERSION ]] {
4949
echo $VERSION already downloaded.
5050
}
5151

52-
ORI_PWD=`pwd`
5352
echo current dir: $PWD
5453

5554
for i ($ZIP_URL){
@@ -58,14 +57,19 @@ for i ($ZIP_URL){
5857
file_name=${i:t}
5958
unzip -o $file_name
6059
dir_name=${file_name%.zip}
60+
61+
# build latest release version on github
6162
cd $dir_name
6263
rm -f '*.pdf *.aux'
63-
latexmk -synctex=1 -interaction=nonstopmode -file-line-error -xelatex main.tex
64-
cd ../
65-
cd ../$dir_name
64+
latexmk
65+
cd -
66+
67+
# build current version
68+
cd ../templates/$dir_name
6669
rm -f '*.pdf *.aux'
67-
latexmk -synctex=1 -interaction=nonstopmode -file-line-error -xelatex main.tex
68-
cd $ORI_PWD
70+
latexmk
71+
cd -
72+
6973
diff-pdf --view ./$dir_name/main.pdf ../templates/$dir_name/main.pdf
7074
echo "============== end $i ==============="
7175
}

0 commit comments

Comments
 (0)