Index: lnt/lnttool/main.py =================================================================== --- lnt/lnttool/main.py +++ lnt/lnttool/main.py @@ -370,7 +370,7 @@ @action_profile.command("upgrade") @click.argument("input", type=click.Path(exists=True)) -@click.argument("output", type=click.Path(exists=True)) +@click.argument("output", type=click.Path()) def command_update(input, output): """upgrade a profile to the latest version""" import lnt.testing.profile.profile as profile Index: tests/lnttool/Profile.py =================================================================== --- tests/lnttool/Profile.py +++ tests/lnttool/Profile.py @@ -9,3 +9,8 @@ # RUN: lnt profile getCodeForFunction %S/Inputs/test.lntprof fn1 | FileCheck --check-prefix=CHECK-GETFN1 %s # CHECK-GETFN1: [{}, 1048576, "add r0, r0, r0"], [{"cycles": 100.0}, 1048580, "sub r1, r0, r0"]] + +# RUN: mkdir -p %t +# RUN: rm -rf %t/non_existing_output.lnt +# RUN: lnt profile upgrade %S/Inputs/test.lntprof %t/non_existing_output.lnt +# RUN: cat %t/non_existing_output.lnt