<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hi Prateek,<br>
    <br>
    I ran into this just recently.  I think there is a bug in
    jstests.py.  I'll file a ticket later today.<br>
    <br>
    For now, if you change manifest.py in the jstests code, you should
    be able to run the tests without a problem.<br>
    <br>
    diff --git a/js/src/tests/manifest.py b/js/src/tests/manifest.py<br>
    --- a/js/src/tests/manifest.py<br>
    +++ b/js/src/tests/manifest.py<br>
    @@ -27,17 +27,17 @@ class XULInfo:<br>
         def as_js(self):<br>
             """Return JS that when executed sets up variables so that
    JS expression<br>
             predicates on XUL build info evaluate properly."""<br>
     <br>
             return 'var xulRuntime = { OS: "%s", XPCOMABI: "%s", shell:
    true }; var isDebugBuild=%s; var Android=%s;' % (<br>
                 self.os,<br>
                 self.abi,<br>
                 str(self.isdebug).lower(),<br>
    -            self.os == "Android")<br>
    +            str(self.os == "Android").lower())<br>
    <br>
    <br>
    <br>
    --Tom<br>
      <br>
    <br>
    On 7/1/11 6:25 PM, Prateek Saxena wrote:
    <blockquote
cite="mid:CANvuEP-_hN3H-9dWKB3JJKgzREK5PUDS+YDE4F4LMb7XjyDThQ@mail.gmail.com"
      type="cite">Hi,<br>
      <br>
      I am trying to test my install of narcissus. I have the master
      branch from Github,<br>
      I followed the steps listed on: <a moz-do-not-send="true"
        href="https://github.com/mozilla/narcissus/wiki">https://github.com/mozilla/narcissus/wiki</a><br>
      <br>
      Specifically, "./njs" works fine for me. I have the following
      symlink setup :<br>
      tests -> ~/mozilla-central/js/src/tests/<br>
      <br>
      But I get this strange error:<br>
      <br>
      $./jstests <br>
      [: 38: -a: unexpected operator<br>
      Traceback (most recent call last):<br>
        File "jstests.py", line 309, in <module><br>
          test_list = manifest.parse(OPTIONS.manifest, xul_tester)<br>
        File
      "/home/prateeks/research/mozilla-central/js/src/tests/manifest.py",
      line 124, in parse<br>
          ans += parse(os.path.join(dir, include_file), xul_tester,
      include_reldir)<br>
        File
      "/home/prateeks/research/mozilla-central/js/src/tests/manifest.py",
      line 124, in parse<br>
          ans += parse(os.path.join(dir, include_file), xul_tester,
      include_reldir)<br>
        File
      "/home/prateeks/research/mozilla-central/js/src/tests/manifest.py",
      line 158, in parse<br>
          if xul_tester.test(cond):<br>
        File
      "/home/prateeks/research/mozilla-central/js/src/tests/manifest.py",
      line 95, in test<br>
          % (cond, out, err))<br>
      Exception: Failed to test XUL condition '!xulRuntime.shell';
      output was '', stderr was ':1: ReferenceError: False is not
      defined\n'<br>
      <br>
      When I run the python script located in the tests directory, by
      pointing it to the compiled spidermonkey 'js', it passes all
      tests.<br>
      <br>
      Any suggestions what might be missing?<br>
      <br>
      Thanks,<br>
      Prateek.<br>
      <br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Narcissus mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Narcissus@mozilla.org">Narcissus@mozilla.org</a>
<a class="moz-txt-link-freetext" href="https://mail.mozilla.org/listinfo/narcissus">https://mail.mozilla.org/listinfo/narcissus</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>