File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 11include LICENSE
22include README.md
33include requirements.txt
4+ include src/fosslight_util/resources/*
Original file line number Diff line number Diff line change 22# -*- coding: utf-8 -*-
33# Copyright (c) 2021 LG Electronics Inc.
44# SPDX-License-Identifier: Apache-2.0
5+ import sys
56from fosslight_util .output_format import write_output_file
67from fosslight_util .set_log import init_log
78
@@ -51,14 +52,20 @@ def main():
5152
5253 logger .warning ("TESTING - Writing an excel output" )
5354 success , msg = write_output_file (
54- 'test_result/output_format/FL-TEST_Excel.xlsx ' , '.xlsx' , sheet_list )
55+ 'test_result/output_format/FL-TEST_Excel' , '.xlsx' , sheet_list )
5556 logger .warning ("Result:" + str (success ) + ", error_msg:" + msg )
5657
58+ if not success :
59+ sys .exit (1 )
60+
5761 logger .warning ("TESTING - Writing an opossum output" )
5862 success , msg = write_output_file (
59- 'test_result/output_format/FL-TEST_opossum.json ' , '.json' , sheet_list )
63+ 'test_result/output_format/FL-TEST_opossum' , '.json' , sheet_list )
6064 logger .warning ("Result:" + str (success ) + ", error_msg:" + msg )
6165
66+ if not success :
67+ sys .exit (1 )
68+
6269
6370if __name__ == '__main__' :
6471 main ()
You can’t perform that action at this time.
0 commit comments