Fix: use GMT clock for tests
authorJulien Desfossez <jdesfossez@efficios.com>
Fri, 4 Mar 2016 18:05:05 +0000 (13:05 -0500)
committerJulien Desfossez <jdesfossez@efficios.com>
Fri, 4 Mar 2016 18:05:05 +0000 (13:05 -0500)
Force the use of the GMT reference clock for our tests to run outside
the eastern time zone.

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
tests/analysis_test.py
tests/expected/cputop.txt
tests/expected/iolatencytop.txt
tests/expected/iousagetop.txt
tests/expected/irqlog.txt
tests/expected/irqstats.txt

index a9a7263853bf6854c9994f43184a548f49ab4b59..8894f6991828c049b05fe327015ed825a18cf99d 100644 (file)
@@ -28,7 +28,7 @@ from .trace_writer import TraceWriter
 
 
 class AnalysisTest(unittest.TestCase):
-    COMMON_OPTIONS = '--no-progress --skip-validation'
+    COMMON_OPTIONS = '--no-progress --skip-validation --gmt'
 
     def set_up_class(self):
         dirname = os.path.dirname(os.path.realpath(__file__))
index 3cc480f7892952cd8c4676c93d24f73f7380129e..50ff7a08233214208fef4e37c9dcd7d2923533da 100644 (file)
@@ -1,4 +1,4 @@
-Timerange: [1969-12-31 19:00:01.000000000, 1969-12-31 19:00:11.000000000]
+Timerange: [1970-01-01 00:00:01.000000000, 1970-01-01 00:00:11.000000000]
 Per-TID Usage                                                                               Process                   Migrations   Priorities
 ################################################################################
 ████████████████████████████████████████████████████████████████████████████████ 100.00 %   prog100pc-cpu5 (42)                0   [20]
index 3941470540289529229e8318fd7d5d65841a4d8d..31cb33c070e09f7ab730f085e356baecd0cfb222 100644 (file)
@@ -1,14 +1,14 @@
-Timerange: [1969-12-31 19:00:01.000000000, 1969-12-31 19:00:01.024000000]
+Timerange: [1970-01-01 00:00:01.000000000, 1970-01-01 00:00:01.024000000]
 
 Top system call latencies open (usec)
 Begin               End                  Name             Duration (usec)         Size  Proc                     PID      Filename      
-[19:00:01.023000000,19:00:01.024000000]  open                    1000.000          N/A  app3                     101      test/open/file (fd=42)
+[00:00:01.023000000,00:00:01.024000000]  open                    1000.000          N/A  app3                     101      test/open/file (fd=42)
 
 Top system call latencies read (usec)
 Begin               End                  Name             Duration (usec)         Size  Proc                     PID      Filename      
-[19:00:01.008000000,19:00:01.009000000]  read                    1000.000      100   B  app2                     100      testfile (fd=3)
-[19:00:01.012000000,19:00:01.013000000]  read                    1000.000       42   B  app3                     101      unknown (fd=3)
+[00:00:01.008000000,00:00:01.009000000]  read                    1000.000      100   B  app2                     100      testfile (fd=3)
+[00:00:01.012000000,00:00:01.013000000]  read                    1000.000       42   B  app3                     101      unknown (fd=3)
 
 Top system call latencies write (usec)
 Begin               End                  Name             Duration (usec)         Size  Proc                     PID      Filename      
-[19:00:01.004000000,19:00:01.005000000]  write                   1000.000       10   B  app                      99       unknown (fd=4)
\ No newline at end of file
+[00:00:01.004000000,00:00:01.005000000]  write                   1000.000       10   B  app                      99       unknown (fd=4)
\ No newline at end of file
index e62ce85e33a3fe2471611215f990c88f2f9dc40d..d7f45fe202c8305e757df2ca85837647dc7f2ed1 100644 (file)
@@ -1,4 +1,4 @@
-Timerange: [1969-12-31 19:00:01.000000000, 1969-12-31 19:00:01.024000000]
+Timerange: [1970-01-01 00:00:01.000000000, 1970-01-01 00:00:01.024000000]
 Per-process I/O Read                                                                     Process                   Disk       Net        Unknown   
 ################################################################################
 ████████████████████████████████████████████████████████████████████████████████ 100   B app2 (100)                     0   B      0   B    100   B
index a8b041ef9a1b9ae3ecd63026e0adc2dbb24c5904..f75d8a6316711bacdaea93f3366df4eaaff78288 100644 (file)
@@ -1,19 +1,19 @@
-Timerange: [1969-12-31 19:00:01.000000000, 1969-12-31 19:00:01.045000000]
+Timerange: [1970-01-01 00:00:01.000000000, 1970-01-01 00:00:01.045000000]
 Begin                End                   Duration (us)  CPU  Type         #  Name                  
-[19:00:01.007000000, 19:00:01.008000000]        1000.000    1  SoftIRQ      1  TIMER_SOFTIRQ (raised at 19:00:01.000000000)
-[19:00:01.006000000, 19:00:01.009000000]        3000.000    3  SoftIRQ      1  TIMER_SOFTIRQ (raised at 19:00:01.001000000)
-[19:00:01.010000000, 19:00:01.012000000]        2000.000    1  SoftIRQ      9  RCU_SOFTIRQ (raised at 19:00:01.002000000)
-[19:00:01.011000000, 19:00:01.013000000]        2000.000    3  SoftIRQ      7  SCHED_SOFTIRQ (raised at 19:00:01.005000000)
-[19:00:01.014000000, 19:00:01.015000000]        1000.000    3  SoftIRQ      9  RCU_SOFTIRQ (raised at 19:00:01.004000000)
-[19:00:01.016000000, 19:00:01.018000000]        2000.000    0  IRQ         41  ahci                  
-[19:00:01.019000000, 19:00:01.020000000]        1000.000    0  SoftIRQ      4  BLOCK_SOFTIRQ (raised at 19:00:01.017000000)
-[19:00:01.021000000, 19:00:01.023000000]        2000.000    0  IRQ         41  ahci                  
-[19:00:01.024000000, 19:00:01.025000000]        1000.000    0  SoftIRQ      4  BLOCK_SOFTIRQ (raised at 19:00:01.022000000)
-[19:00:01.026000000, 19:00:01.028000000]        2000.000    0  IRQ         41  ahci                  
-[19:00:01.029000000, 19:00:01.030000000]        1000.000    0  SoftIRQ      4  BLOCK_SOFTIRQ (raised at 19:00:01.027000000)
-[19:00:01.031000000, 19:00:01.033000000]        2000.000    0  IRQ         41  ahci                  
-[19:00:01.034000000, 19:00:01.035000000]        1000.000    0  SoftIRQ      4  BLOCK_SOFTIRQ (raised at 19:00:01.032000000)
-[19:00:01.036000000, 19:00:01.038000000]        2000.000    0  IRQ         41  ahci                  
-[19:00:01.039000000, 19:00:01.040000000]        1000.000    0  SoftIRQ      4  BLOCK_SOFTIRQ (raised at 19:00:01.037000000)
-[19:00:01.041000000, 19:00:01.043000000]        2000.000    0  IRQ         41  ahci                  
-[19:00:01.044000000, 19:00:01.045000000]        1000.000    0  SoftIRQ      4  BLOCK_SOFTIRQ (raised at 19:00:01.042000000)
\ No newline at end of file
+[00:00:01.007000000, 00:00:01.008000000]        1000.000    1  SoftIRQ      1  TIMER_SOFTIRQ (raised at 00:00:01.000000000)
+[00:00:01.006000000, 00:00:01.009000000]        3000.000    3  SoftIRQ      1  TIMER_SOFTIRQ (raised at 00:00:01.001000000)
+[00:00:01.010000000, 00:00:01.012000000]        2000.000    1  SoftIRQ      9  RCU_SOFTIRQ (raised at 00:00:01.002000000)
+[00:00:01.011000000, 00:00:01.013000000]        2000.000    3  SoftIRQ      7  SCHED_SOFTIRQ (raised at 00:00:01.005000000)
+[00:00:01.014000000, 00:00:01.015000000]        1000.000    3  SoftIRQ      9  RCU_SOFTIRQ (raised at 00:00:01.004000000)
+[00:00:01.016000000, 00:00:01.018000000]        2000.000    0  IRQ         41  ahci                  
+[00:00:01.019000000, 00:00:01.020000000]        1000.000    0  SoftIRQ      4  BLOCK_SOFTIRQ (raised at 00:00:01.017000000)
+[00:00:01.021000000, 00:00:01.023000000]        2000.000    0  IRQ         41  ahci                  
+[00:00:01.024000000, 00:00:01.025000000]        1000.000    0  SoftIRQ      4  BLOCK_SOFTIRQ (raised at 00:00:01.022000000)
+[00:00:01.026000000, 00:00:01.028000000]        2000.000    0  IRQ         41  ahci                  
+[00:00:01.029000000, 00:00:01.030000000]        1000.000    0  SoftIRQ      4  BLOCK_SOFTIRQ (raised at 00:00:01.027000000)
+[00:00:01.031000000, 00:00:01.033000000]        2000.000    0  IRQ         41  ahci                  
+[00:00:01.034000000, 00:00:01.035000000]        1000.000    0  SoftIRQ      4  BLOCK_SOFTIRQ (raised at 00:00:01.032000000)
+[00:00:01.036000000, 00:00:01.038000000]        2000.000    0  IRQ         41  ahci                  
+[00:00:01.039000000, 00:00:01.040000000]        1000.000    0  SoftIRQ      4  BLOCK_SOFTIRQ (raised at 00:00:01.037000000)
+[00:00:01.041000000, 00:00:01.043000000]        2000.000    0  IRQ         41  ahci                  
+[00:00:01.044000000, 00:00:01.045000000]        1000.000    0  SoftIRQ      4  BLOCK_SOFTIRQ (raised at 00:00:01.042000000)
\ No newline at end of file
index a5d2807c672f8a7f99fa3b24d72ab80f251a4ddf..99dfef991dbabc135fc4625473ea1560df975303 100644 (file)
@@ -1,4 +1,4 @@
-Timerange: [1969-12-31 19:00:01.000000000, 1969-12-31 19:00:01.045000000]
+Timerange: [1970-01-01 00:00:01.000000000, 1970-01-01 00:00:01.045000000]
 Hard IRQ                                             Duration (us)
                        count          min          avg          max        stdev       
 ----------------------------------------------------------------------------------|
This page took 0.028352 seconds and 5 git commands to generate.