File tree Expand file tree Collapse file tree 7 files changed +8
-6
lines changed
tests/pytest/package_manager Expand file tree Collapse file tree 7 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 88 "fosslight_dependency -p tests/test_android -o tests/result/android -m android"
99]
1010
11- DIST_PATH = os .path .join (os .path . abspath ( os . sep ), "dist" , "cli.exe" )
11+ DIST_PATH = os .path .join (os .environ . get ( "TOX_PATH" ), "dist" , "cli.exe" )
1212INPUT_PATH = os .path .join ("tests" , "test_android" , "sunflower" )
1313OUTPUT_PATH = os .path .join ("tests" , "result" , "android" )
1414
Original file line number Diff line number Diff line change 99 "fosslight_dependency -p tests/test_gradle2 -o tests/result/gradle2"
1010]
1111
12- DIST_PATH = os .path .join (os .path . abspath ( os . sep ), "dist" , "cli.exe" )
12+ DIST_PATH = os .path .join (os .environ . get ( "TOX_PATH" ), "dist" , "cli.exe" )
1313INPUT_PATH = os .path .join ("tests" , "test_gradle" , "jib" )
1414OUTPUT_PATH = os .path .join ("tests" , "result" , "gradle" )
1515INPUT_PATH2 = os .path .join ("tests" , "test_gradle2" )
2020 f"{ DIST_PATH } -p { INPUT_PATH2 } -o { OUTPUT_PATH2 } -m gradle" ,
2121]
2222
23+
2324def test_ubuntu (run_command ):
2425 for command in UBUNTU_COMMANDS :
2526 return_code , stdout , stderr = run_command (command )
Original file line number Diff line number Diff line change 99 "fosslight_dependency -p tests/test_maven2 -o tests/result/maven2"
1010]
1111
12- DIST_PATH = os .path .join (os .path . abspath ( os . sep ), "dist" , "cli.exe" )
12+ DIST_PATH = os .path .join (os .environ . get ( "TOX_PATH" ), "dist" , "cli.exe" )
1313INPUT_PATH = os .path .join ("tests" , "test_maven2" )
1414OUTPUT_PATH = os .path .join ("tests" , "result" , "maven2" )
1515
Original file line number Diff line number Diff line change 99 "fosslight_dependency -p tests/test_nuget2 -o tests/result/nuget2"
1010]
1111
12- DIST_PATH = os .path .join (os .path . abspath ( os . sep ), "dist" , "cli.exe" )
12+ DIST_PATH = os .path .join (os .environ . get ( "TOX_PATH" ), "dist" , "cli.exe" )
1313INPUT_PATH = os .path .join ("tests" , "test_nuget" )
1414OUTPUT_PATH = os .path .join ("tests" , "result" , "nuget1" )
1515INPUT_PATH2 = os .path .join ("tests" , "test_nuget2" )
Original file line number Diff line number Diff line change 99 "fosslight_dependency -p tests/test_exclude -e requirements.txt -o tests/result/exclude"
1010]
1111
12- DIST_PATH = os .path .join (os .path . abspath ( os . sep ), "dist" , "cli.exe" )
12+ DIST_PATH = os .path .join (os .environ . get ( "TOX_PATH" ), "dist" , "cli.exe" )
1313INPUT_PATH = os .path .join ("tests" , "test_pub" )
1414OUTPUT_PATH = os .path .join ("tests" , "result" , "pub" )
1515INPUT_PATH2 = os .path .join ("tests" , "test_exclude" )
Original file line number Diff line number Diff line change 1010 "fosslight_dependency -p tests/test_multi_pypi_npm -o tests/result/multi_pypi_npm -f opossum"
1111]
1212
13- DIST_PATH = os .path .join (os .path . abspath ( os . sep ), "dist" , "cli.exe" )
13+ DIST_PATH = os .path .join (os .environ . get ( "TOX_PATH" ), "dist" , "cli.exe" )
1414INPUT_PATH = os .path .join ("tests" , "test_pypi" )
1515OUTPUT_PATH = os .path .join ("tests" , "result" , "pypi" )
1616
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ toxworkdir = {toxinidir}/tests/
99install_command = pip install {opts} {packages}
1010setenv =
1111 PYTHONPATH =.
12+ TOX_PATH ={toxinidir}
1213allowlist_externals =
1314 {toxinidir}/dist/cli
1415 {toxinidir}\dist\cli.exe
You can’t perform that action at this time.
0 commit comments