2020-04-07 20:49:43 +08:00
|
|
|
import sys
|
|
|
|
try:
|
|
|
|
import blender_addon_tester as BAT
|
|
|
|
except Exception as e:
|
|
|
|
print(e)
|
|
|
|
sys.exit(1)
|
|
|
|
|
|
|
|
def main():
|
|
|
|
if len(sys.argv) > 1:
|
|
|
|
addon = sys.argv[1]
|
|
|
|
else:
|
|
|
|
addon = "multi_user"
|
|
|
|
if len(sys.argv) > 2:
|
|
|
|
blender_rev = sys.argv[2]
|
|
|
|
else:
|
2021-06-15 22:27:49 +08:00
|
|
|
blender_rev = "2.93.0"
|
2020-04-07 20:49:43 +08:00
|
|
|
|
|
|
|
try:
|
|
|
|
exit_val = BAT.test_blender_addon(addon_path=addon, blender_revision=blender_rev)
|
|
|
|
except Exception as e:
|
|
|
|
print(e)
|
|
|
|
exit_val = 1
|
|
|
|
sys.exit(exit_val)
|
|
|
|
|
2020-04-08 16:41:24 +08:00
|
|
|
main()
|