Exemple #1
0
        output_table.append(output)
        test_utils.print_single_result(output)

        # Test 1
        test = tests[1]
        status = test_utils.run_command_line(["diff",
                                              "-r",
                                              test_utils.get_bundle_path(test.container_id),
                                              bundle_path])

        output = test_utils.create_simple_test_output(test, status.stdout is "", "", status.stdout)
        output_table.append(output)
        test_utils.print_single_result(output)

        # Test 2
        test = tests[2]
        status = test_utils.run_command_line(["rm",
                                              "-rf",
                                              test_utils.get_bundle_path(test.container_id)])

        output = test_utils.create_simple_test_output(test, status.stderr is "", "", status.stderr)
        output_table.append(output)
        test_utils.print_single_result(output)

    return test_utils.count_print_results(output_table)


if __name__ == "__main__":
    test_utils.parse_arguments(__file__)
    execute_test()
Exemple #2
0
                                #"--noconsole",
                                "--journald"
                                ],
                               universal_newlines=True,
                               stdout=subprocess.PIPE,
                               stderr=subprocess.PIPE)
    sleep(1)
    return subproc


def stop_dobby_daemon():
    """Stops DobbyDaemon service. For Xi6 DobbyDaemon is running all the time so this function returns does nothing

    Parameters:
    None

    Returns:
    subproc (subprocess.run): killing DobbyDaemon process, True for platform xi_6

    """

    test_utils.print_log("Stopping Dobby Daemon", test_utils.Severity.debug)
    subproc = test_utils.run_command_line(["sudo", "pkill", "DobbyDaemon"])
    sleep(0.2)
    return subproc


if __name__ == "__main__":
    test_utils.parse_arguments(__file__, True)
    execute_test()