Skip to content

Commit

Permalink
print some text on no args
Browse files Browse the repository at this point in the history
  • Loading branch information
pedohorse committed Jan 27, 2025
1 parent 3140f9b commit 5f22d45
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/nodes/data/mock_redshift/redshiftCmdLine
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ import os
import random
import time

# TODO: this text is incorrect, find a real redshift and take the real text
noarg_text = '''Redshift Command-Line Renderer (version 3.0.39 - API: 3026)
Copyright 2020 Redshift Rendering Technologies
Querying texture cache buget from preferences.xml: 32 GB
Querying cache path from REDSHIFT_CACHEPATH: /some/cache/path
No GPUs were selected in the command line, using all devices
'''

prefix = '''Redshift Command-Line Renderer (version 3.0.39 - API: 3026)
Copyright 2020 Redshift Rendering Technologies
Expand Down Expand Up @@ -231,6 +239,7 @@ def mock_render(args: list, do_crap_myself=False):

if __name__ == '__main__':
if len(sys.argv) < 2:
print(noarg_text)
sys.exit(2)

mock_render(sys.argv[1:])

0 comments on commit 5f22d45

Please sign in to comment.