@@ -16,12 +16,19 @@ def run_command(*args): # 리눅스 명령어 실행
1616
1717def test_test_run_environment (): # 테스트 환경 tox.ini
1818 # Given
19- run_command ("rm" , "-rf" , "test_result" )
19+ run_command ("rm" , "-rf" , "test_result" )
2020 os .makedirs ("test_result" , exist_ok = True )
2121
2222 # When
2323 csv_success , _ = run_command ("fosslight_bin" , "-p" , "." , "-o" , "test_result" , "-f" , "csv" )
24- exclude_success , _ = run_command ("fosslight_bin" , "-p" , "." , "-e" , "test" , "commons-logging-1.2.jar" , "-o" , "test_result/exclude_result.csv" , "-f" , "csv" )
24+ exclude_success , _ = run_command (
25+ "fosslight_bin" ,
26+ "-p" , "." ,
27+ "-e" , "test" , "commons-logging-1.2.jar" ,
28+ "-o" , "test_result/exclude_result.csv" ,
29+ "-f" , "csv"
30+ )
31+
2532 files_in_result = run_command ("ls" , "test_result" )[1 ].split ()
2633 txt_success , txt_output = run_command ("find" , "test_result" , "-type" , "f" , "-name" , "fosslight_log*.txt" )
2734
@@ -42,7 +49,14 @@ def test_release_environment(): # 릴리즈 환경 tox.ini
4249 # When
4350 help_success , _ = run_command ("fosslight_bin" , "-h" )
4451 csv_success , _ = run_command ("fosslight_bin" , "-p" , "." , "-o" , "test_result/result.csv" , "-f" , "csv" )
45- exclude_csv_success , _ = run_command ("fosslight_bin" , "-p" , "." , "-e" , "test" , "commons-logging-1.2.jar" , "-o" , "test_result/exclude_result.csv" , "-f" , "csv" )
52+ exclude_csv_success , _ = run_command (
53+ "fosslight_bin" ,
54+ "-p" , "." ,
55+ "-e" , "test" , "commons-logging-1.2.jar" ,
56+ "-o" , "test_result/exclude_result.csv" ,
57+ "-f" , "csv"
58+ )
59+
4660 json_success , _ = run_command ("fosslight_bin" , "-p" , "." , "-o" , "test_result/result.json" , "-f" , "opossum" )
4761 files_in_result = run_command ("ls" , "test_result" )[1 ].split ()
4862
0 commit comments