Skip to content

Commit 16e46fb

Browse files
committed
Update fosslight_util functions
1 parent 5261311 commit 16e46fb

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/fosslight_source/run_scancode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def run_scan(path_to_scan, output_file_name="",
7676
output_dir = os.path.dirname(os.path.abspath(output_file_name))
7777

7878
logger, _result_log = init_log(os.path.join(output_dir, "fosslight_src_log_"+start_time+".txt"),
79-
True, logging.INFO, logging.DEBUG, _PKG_NAME, path_to_scan)
79+
True, logging.INFO, logging.DEBUG, _PKG_NAME, path_to_scan)
8080

8181
if path_to_scan == "":
8282
if _windows:

tests/cli_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def main():
2323
fosslight_report_name = "test_result_func_call/result"
2424
output_dir = os.path.dirname(os.path.abspath(output_file_name))
2525

26-
logger = init_log(os.path.join(output_dir, "fosslight_src_log_"+start_time+".txt"))
26+
logger, result_item = init_log(os.path.join(output_dir, "fosslight_src_log_"+start_time+".txt"))
2727

2828
ret = run_scan(path_to_find_bin, fosslight_report_name, True, -1, True)
2929

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ commands =
2424
cat test_scan/scan_result.csv
2525
fosslight_convert -p tests/json_result/scan_has_error.json -o test_convert/convert_result2
2626
fosslight_convert -p test_scan/scan_result.json -o test_convert/convert_result
27-
cat test_convert/convert_result.csv
27+
cat test_convert/convert_result_SRC.csv
2828
python tests/cli_test.py
2929

3030
[testenv:release]
@@ -38,6 +38,6 @@ commands =
3838
cat test_scan/scan_result.csv
3939
fosslight_convert -p tests/json_result/scan_has_error.json -o test_convert/convert_result2
4040
fosslight_convert -p test_scan/scan_result.json -o test_convert/convert_result
41-
cat test_convert/convert_result.csv
41+
cat test_convert/convert_result_SRC.csv
4242
python tests/cli_test.py
4343
pytest -v --flake8

0 commit comments

Comments
 (0)