[seed] Fixing the argv.js tests for some platforms.



commit 27595721664aa5f44d9bf3bb84abc586d6d40792
Author: Danilo Cesar Lemes de Paula <danilo cesar collabora co uk>
Date:   Fri Sep 16 09:43:21 2016 -0300

    Fixing the argv.js tests for some platforms.
    
    Looks like that, depending on the buildsystem, the argv value
    might be FOO/lt-seed or FOO/seed. So we are fixing this test accordingly.

 tests/javascript/argv.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/javascript/argv.js b/tests/javascript/argv.js
index f24b454..5e0c83a 100755
--- a/tests/javascript/argv.js
+++ b/tests/javascript/argv.js
@@ -1,5 +1,5 @@
 #!/usr/bin/env seed
 
-// when running make check, argv is actually path/to/lt-seed
+// when running make check, argv is actually path/to/lt-seed or path/to/seed
 
-imports.testsuite.assert(Seed.argv[0] == "seed" || Seed.argv[0].match(/\/lt-seed$/))
+imports.testsuite.assert(Seed.argv[0] == "seed" || Seed.argv[0].match(/\/lt-seed$/) || 
Seed.argv[0].match(/\/seed$/))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]