@@ -3271,18 +3271,18 @@ def check(text):
3271
3271
self.fail('output contains more then one empty line in row')
3272
3272
3273
3273
# relative path must be within/below the current dir
3274
- stderr = self.expect_fail([FILE_PACKAGER, 'test.data', '--preload', '../data1.txt'])
3274
+ stderr = self.expect_fail([FILE_PACKAGER, 'test.data', '--quiet', '-- preload', '../data1.txt'])
3275
3275
self.assertContained('which is not contained within the current directory', stderr)
3276
3276
3277
3277
# relative path that ends up under us is cool
3278
- proc = self.run_process([FILE_PACKAGER, 'test.data', '--preload', '../subdir/data2.txt'], stderr=PIPE, stdout=PIPE)
3279
- self.assertNotContained('which is not contained within the current directory', proc.stderr)
3278
+ proc = self.run_process([FILE_PACKAGER, 'test.data', '--quiet', '-- preload', '../subdir/data2.txt'], stderr=PIPE, stdout=PIPE)
3279
+ self.assertEqual( proc.stderr, '' )
3280
3280
check(proc.stdout)
3281
3281
3282
3282
# direct path leads to the same code being generated - relative path does not make us do anything different
3283
- proc2 = self.run_process([FILE_PACKAGER, 'test.data', '--preload', 'data2.txt'], stderr=PIPE, stdout=PIPE)
3283
+ proc2 = self.run_process([FILE_PACKAGER, 'test.data', '--quiet', '-- preload', 'data2.txt'], stderr=PIPE, stdout=PIPE)
3284
3284
check(proc2.stdout)
3285
- self.assertNotContained('below the current directory', proc2.stderr)
3285
+ self.assertEqual( proc2.stderr, '' )
3286
3286
3287
3287
def clean(txt):
3288
3288
lines = txt.splitlines()
@@ -3294,15 +3294,15 @@ def clean(txt):
3294
3294
# verify '--separate-metadata' option produces separate metadata file
3295
3295
os.chdir('..')
3296
3296
3297
- self.run_process([FILE_PACKAGER, 'test.data', '--preload', 'data1.txt', '--preload', 'subdir/data2.txt', '--js-output=immutable.js', '--separate-metadata', '--use-preload-cache'])
3297
+ self.run_process([FILE_PACKAGER, 'test.data', '--quiet', '-- preload', 'data1.txt', '--preload', 'subdir/data2.txt', '--js-output=immutable.js', '--separate-metadata', '--use-preload-cache'])
3298
3298
self.assertExists('immutable.js.metadata')
3299
3299
# verify js output JS file is not touched when the metadata is separated
3300
3300
orig_timestamp = os.path.getmtime('immutable.js')
3301
3301
orig_content = read_file('immutable.js')
3302
3302
# ensure some time passes before running the packager again so that if it does touch the
3303
3303
# js file it will end up with the different timestamp.
3304
3304
time.sleep(1.0)
3305
- self.run_process([FILE_PACKAGER, 'test.data', '--preload', 'data1.txt', '--preload', 'subdir/data2.txt', '--js-output=immutable.js', '--separate-metadata', '--use-preload-cache'])
3305
+ self.run_process([FILE_PACKAGER, 'test.data', '--quiet', '-- preload', 'data1.txt', '--preload', 'subdir/data2.txt', '--js-output=immutable.js', '--separate-metadata', '--use-preload-cache'])
3306
3306
# assert both file content and timestamp are the same as reference copy
3307
3307
self.assertTextDataIdentical(orig_content, read_file('immutable.js'))
3308
3308
self.assertEqual(orig_timestamp, os.path.getmtime('immutable.js'))
0 commit comments