VirtualBox

source: vbox/trunk/src/VBox/ValidationKit/testmanager/cgi/debuginfo.py

Last change on this file was 106061, checked in by vboxsync, 2 months ago

Copyright year updates by scm.

  • Property svn:eol-style set to LF
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 2.1 KB
Line 
1#!/usr/bin/env python
2# -*- coding: utf-8 -*-
3# $Id: debuginfo.py 106061 2024-09-16 14:03:52Z vboxsync $
4
5"""
6CGI - Debug Info Page.
7"""
8
9__copyright__ = \
10"""
11Copyright (C) 2012-2024 Oracle and/or its affiliates.
12
13This file is part of VirtualBox base platform packages, as
14available from https://www.virtualbox.org.
15
16This program is free software; you can redistribute it and/or
17modify it under the terms of the GNU General Public License
18as published by the Free Software Foundation, in version 3 of the
19License.
20
21This program is distributed in the hope that it will be useful, but
22WITHOUT ANY WARRANTY; without even the implied warranty of
23MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24General Public License for more details.
25
26You should have received a copy of the GNU General Public License
27along with this program; if not, see <https://www.gnu.org/licenses>.
28
29The contents of this file may alternatively be used under the terms
30of the Common Development and Distribution License Version 1.0
31(CDDL), a copy of it is provided in the "COPYING.CDDL" file included
32in the VirtualBox distribution, in which case the provisions of the
33CDDL are applicable instead of those of the GPL.
34
35You may elect to license modified versions of this file under the
36terms and conditions of either the GPL or the CDDL or both.
37
38SPDX-License-Identifier: GPL-3.0-only OR CDDL-1.0
39"""
40__version__ = "$Revision: 106061 $"
41
42
43# Standard python imports.
44import os
45import sys
46
47# Only the main script needs to modify the path.
48g_ksValidationKitDir = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))));
49sys.path.append(g_ksValidationKitDir);
50
51# Validation Kit imports.
52from testmanager.core.webservergluecgi import WebServerGlueCgi;
53
54
55def main():
56 """
57 Main function a la C/C++. Returns exit code.
58 """
59
60 oSrvGlue = WebServerGlueCgi(g_ksValidationKitDir, fHtmlOutput = True);
61 try:
62 oSrvGlue.debugInfoPage();
63 oSrvGlue.flush();
64 except Exception as oXcpt:
65 return oSrvGlue.errorPage('Internal error: %s' % (str(oXcpt),), sys.exc_info());
66
67 return 0;
68
69if __name__ == '__main__':
70 sys.exit(main());
71
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette