* xtf-runner: Class TestInstance implements __hash__ but does not define __eq__.
* mkinfo.py: Import of 'os' is not used.
LGTM also complains about gdt/idt/tss being global symbols with too-short
names. As they're the most appropriate architectural names, insert
suppression comments.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
#define gdt_section __page_aligned_bss
#endif
-user_desc gdt[NR_GDT_ENTRIES] gdt_section =
+user_desc gdt[NR_GDT_ENTRIES] gdt_section = /* lgtm [cpp/short-global-name] */
{
#ifdef CONFIG_HVM
[GDTE_CS64_DPL0] = INIT_GDTE_SYM(0, 0xfffff, COMMON, CODE, DPL0, R, L),
.base = _u(&gdt),
};
-env_gate idt[256];
+env_gate idt[256]; /* lgtm [cpp/short-global-name] */
desc_ptr idt_ptr =
{
void entry_VE(void);
void entry_ret_to_kernel(void);
-env_tss tss __aligned(16) =
+env_tss tss __aligned(16) = /* lgtm [cpp/short-global-name] */
{
#if defined(__i386__)
#!/usr/bin/env python
# -*- coding: utf-8 -*-
-import sys, os, json
+import sys, json
# Usage: mkcfg.py $OUT $NAME $CATEGORY $ENVS $VARIATIONS
_, out, name, cat, envs, variations = sys.argv
def __hash__(self):
return hash(repr(self))
+ def __eq__(self, other):
+ return repr(self) == repr(other)
+
+ def __ne__(self, other):
+ return repr(self) != repr(other)
+
def __cmp__(self, other):
return cmp(repr(self), repr(other))