Skip to content
This repository
Browse code

test if binary is stale in /tmp/X/...

  • Loading branch information...
commit 0b4bcd31f72d7261763e7dae2a0c7ac91af4bda8 1 parent ba09c67
Romain Slootmaekers authored

Showing 1 changed file with 7 additions and 2 deletions. Show diff stats Hide diff stats

  1. +7 2 test_it.py
9 test_it.py
@@ -11,8 +11,13 @@ def prologue():
11 11 if not os.path.exists(bin):
12 12 if not os.path.exists(bin_dir):
13 13 os.makedirs(bin_dir)
14   - subprocess.call(['cp','./barakoon.native',
15   - bin])
  14 + else:
  15 + version = subprocess.check_output(['./barakoon.native','--version'])
  16 + version2 = subprocess.check_output([bin,'--version'])
  17 + if version <> version2:
  18 + print version,version2
  19 + print "=> copying exec"
  20 + subprocess.call(['cp','./barakoon.native', bin])
16 21
17 22
18 23 prologue()

0 comments on commit 0b4bcd3

Please sign in to comment.
Something went wrong with that request. Please try again.