- @unittest.skip('Requires https://gerrit.fd.io/r/#/c/19581/ '
- 'to use timestamp_ticks.')
- def test_show_vpe_system_time_ticks(self):
- rv = self.vapi.show_vpe_system_time_ticks()
- self.assertTrue(rv.vpe_system_time_ticks > 1.0)
+ def test_show_vpe_system_time(self):
+ local_start_time = datetime.datetime.now()
+ rv = self.vapi.show_vpe_system_time()
+ self.assertTrue(rv.vpe_system_time > local_start_time -
+ datetime.timedelta(hours=1.0),
+ 'system times differ by more than an hour.')
+ if enable_print:
+ print('\n'.join([str(v) for v in rv]))
+ print('%r %s' % (rv.vpe_system_time,
+ rv.vpe_system_time))