Browse files

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

  • Loading branch information...
1 parent ba09c67 commit 0b4bcd31f72d7261763e7dae2a0c7ac91af4bda8 Romain Slootmaekers committed May 8, 2012
Showing with 7 additions and 2 deletions.
  1. +7 −2 test_it.py
View
9 test_it.py
@@ -11,8 +11,13 @@ def prologue():
if not os.path.exists(bin):
if not os.path.exists(bin_dir):
os.makedirs(bin_dir)
- subprocess.call(['cp','./barakoon.native',
- bin])
+ else:
+ version = subprocess.check_output(['./barakoon.native','--version'])
+ version2 = subprocess.check_output([bin,'--version'])
+ if version <> version2:
+ print version,version2
+ print "=> copying exec"
+ subprocess.call(['cp','./barakoon.native', bin])
prologue()

0 comments on commit 0b4bcd3

Please sign in to comment.