def create_test_results(suite_name, test_name, timestamp, command_args_printable, rc):
    """
    Create a minimal test results object for test cases that did not produce their own

    :param suite_name: the name of the subdirectory for the suite this test was run in
    :param test_name: the name of the subdirectory for this test case
    :param timestamp: the timestamp when the test case was run
    :param command_args_printable: the command line args with sensitive args like password obscured
    :param rc: the return of the test (zero for success, non-zero for fail)
    :return: the results object that can be converted to JSON
    """
    failed, passed = 0, 0
    if rc == 0:
        passed = 1
    else:
        failed = 1
    results = {
        "ToolName": "Suite: {}, Test case: {}".format(suite_name, test_name),
        "Timestamp": {
            "DateTime": "{:%Y-%m-%dT%H:%M:%SZ}".format(timestamp)
        },
        "CommandLineArgs": command_args_printable,
        "TestResults": {
            test_name: {
                "fail": failed,
                "pass": passed
            }
        },
        "ServiceRoot": {}
    }
    return results