Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 183fdcb

Browse files
authoredApr 4, 2021
fix: support for missing files in the results or results directory (#1206)
* fix: support for missing files in the results or results directory * fix: support for missing files in the results or results directory
1 parent a2a6979 commit 183fdcb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎GNUmakefile

+6
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@ diff:
9999
# ln -s oldvuls vuls.old
100100
# make int
101101
# (ex. test 10 times: for i in `seq 10`; do make int ARGS=-quiet ; done)
102+
ifneq ($(shell ls -U1 ${BASE_DIR} | wc -l), 0)
102103
mv ${BASE_DIR}/* /tmp
104+
endif
103105
mkdir -p ${NOW_JSON_DIR}
104106
cp integration/data/*.json ${NOW_JSON_DIR}
105107
./vuls.old report --format-json --refresh-cve --results-dir=${BASE_DIR} -config=./integration/int-config.toml $(ARGS)
@@ -122,7 +124,9 @@ diff-redis:
122124
# ln -s vuls vuls.new
123125
# ln -s oldvuls vuls.old
124126
# make int-redis
127+
ifneq ($(shell ls -U1 ${BASE_DIR} | wc -l), 0)
125128
mv ${BASE_DIR}/* /tmp
129+
endif
126130
mkdir -p ${NOW_JSON_DIR}
127131
cp integration/data/*.json ${NOW_JSON_DIR}
128132
./vuls.old report --format-json --refresh-cve --results-dir=${BASE_DIR} -config=./integration/int-redis-config.toml
@@ -135,7 +139,9 @@ diff-redis:
135139
echo "old: ${NOW_JSON_DIR} , new: ${ONE_SEC_AFTER_JSON_DIR}"
136140

137141
diff-rdb-redis:
142+
ifneq ($(shell ls -U1 ${BASE_DIR} | wc -l), 0)
138143
mv ${BASE_DIR}/* /tmp
144+
endif
139145
mkdir -p ${NOW_JSON_DIR}
140146
cp integration/data/*.json ${NOW_JSON_DIR}
141147
./vuls.new report --format-json --refresh-cve --results-dir=${BASE_DIR} -config=./integration/int-config.toml

0 commit comments

Comments
 (0)
Please sign in to comment.