Skip to content

command_line/reduce.py ignoring return value from reduce #1

@wojdyr

Description

@wojdyr

the reduce.py script calls reduce but doesn't pass it's return value, see
https://github.com/rlabduke/reduce/blob/master/command_line/reduce.py#L20
So reduce has sometimes return status 1, but phenix.reduce always returns 0.
This change would be trivial to change, like this:

  return subprocess.call(cmd + args)
  ...
  sys.exit(run(sys.argv[1:]))

unless ignoring the status code is actually intentional - I can't be sure about it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions